public byte [ ] readByteArray ( int length ) throws IOException { byte buf [ ] = new byte [ length ] ; for ( int i = 0 ; i < length ; i ++ ) { buf [ i ] = ( byte ) read ( ) ; } return buf ; }
Read an array of bytes .