public void resetRow(int filepos, int rowsize) throws IOException {

        mark = 0;

        reset();

        if (buf.length < rowsize) {
            buf = new byte[rowsize];
        }

        filePos = filepos;
        size    = count = rowsize;
        pos     = 4;
        buf[0]  = (byte) ((rowsize >>> 24) & 0xFF);
        buf[1]  = (byte) ((rowsize >>> 16) & 0xFF);
        buf[2]  = (byte) ((rowsize >>> 8) & 0xFF);
        buf[3]  = (byte) ((rowsize >>> 0) & 0xFF);
    }
public void resetRow ( int filepos , int rowsize ) throws IOException { mark = 0 ; reset ( ) ; if ( buf . length < rowsize ) { buf = new byte [ rowsize ] ; } filePos = filepos ; size = count = rowsize ; pos = 4 ; buf [ 0 ] = ( byte ) ( ( rowsize > > > 24 ) & 0xFF ) ; buf [ 1 ] = ( byte ) ( ( rowsize > > > 16 ) & 0xFF ) ; buf [ 2 ] = ( byte ) ( ( rowsize > > > 8 ) & 0xFF ) ; buf [ 3 ] = ( byte ) ( ( rowsize > > > 0 ) & 0xFF ) ; }
Used to reset the row, ready for a new row to be written into the
byte[] buffer by an external routine.