/** Decode a string into a ByteBuffer */ public static String fromByteBuffer(ByteBuffer bb) { //return BlockUTF8.toString(bb) ; // To be removed (Dec 2011) CharsetDecoder dec = Chars.allocDecoder(); String x = fromByteBuffer(bb, dec) ; Chars.deallocDecoder(dec) ; return x ; }
/** Decode a string into a ByteBuffer */ public static String fromByteBuffer(ByteBuffer bb) { //return BlockUTF8.toString(bb) ; // To be removed (Dec 2011) CharsetDecoder dec = Chars.allocDecoder(); String x = fromByteBuffer(bb, dec) ; Chars.deallocDecoder(dec) ; return x ; }
/** Decode a string into a ByteBuffer */ public static String fromByteBuffer(ByteBuffer bb) { //return BlockUTF8.toString(bb) ; // To be removed (Dec 2011) CharsetDecoder dec = Chars.allocDecoder(); String x = fromByteBuffer(bb, dec) ; Chars.deallocDecoder(dec) ; return x ; }