When I try to add the strings to a bytebuffer, it doesn't write in the file. While I try to add int and double it is working fine. But for strings it doesn't work.
buffer.asCharBuffer().put(value.getValue1());
buffer.asCharBuffer().put(value.getValue2());