public void endChunk ( ) { flush ( ) ; if ( TRACE ) trace ( "kryo" , "End chunk." ) ; try { getOutputStream ( ) . write ( 0 ) ; // Zero length chunk. } catch ( IOException ex ) { throw new KryoException ( ex ) ; } }
Marks the curent written data as the end of a chunk . This chunk can then be skipped when reading .