question: static Buffer fromCSVBuffer ( String s ) throws IOException { if ( s . charAt ( 0 ) != '#' ) { throw new IOException ( "Error deserializing buffer." ) ; } if ( s . length ( ) == 1 ) { return new Buffer ( ) ; } int blen = ( s . length ( ) - 1 ) / 2 ; byte [ ] barr = new byte [ blen ] ; for ( int idx = 0 ; idx < blen ; idx ++ ) { char c1 = s . charAt ( 2 * idx + 1 ) ; char c2 = s . charAt ( 2 * idx + 2 ) ; barr [ idx ] = ( byte ) Integer . parseInt ( "" + c1 + c2 , 16 ) ; } return new Buffer ( barr ) ; }
target:  Converts a CSV-serialized representation of buffer to a new Buffer