public JBBPOut Skip ( int numberOfBytes ) throws IOException { assertNotEnded ( ) ; if ( this . processCommands ) { if ( numberOfBytes < 0 ) { throw new IllegalArgumentException ( "Value is negative" ) ; } this . Align ( ) ; while ( numberOfBytes > 0 ) { this . outStream . write ( 0 ) ; numberOfBytes -- ; } } return this ; }
Skip number of bytes in the stream zero bytes will be written and also will be aligned inside bit cache even if the value is 0 .