public FilterByteBuffer putString ( String str , Charset charset ) throws IOException { byte [ ] bytes = str . getBytes ( charset ) ; put ( bytes ) . put ( ( byte ) 0 ) ; return this ; }
Puts string as null terminated byte array