private static Opt < String > newHeader ( final Opt < Integer > data , final ByteArrayOutputStream baos ) { Opt < String > header = new Opt . Empty <> ( ) ; if ( data . get ( ) != ' ' && data . get ( ) != ' ' ) { header = new Opt . Single <> ( new Utf8String ( baos . toByteArray ( ) ) . asString ( ) ) ; baos . reset ( ) ; } return header ; }
Builds current read header .