Please tell me how we can read line from bytebuffer
posted 4 years ago
Hi Bagaria,Welcome to JavaRanch Community.....
ByteBuffer class uses channels like "FileChannel" to read data from files.
Have you seen methods available ByteBuffer and FileChannel classes?
I think there is no readLine() method available.
But you can do similar by allocating a buffer size and than setting initial offset and capacity
also you can extract the specific part of data from buffer using utilities like subString,indexOf.