public int read() throws IOException {
        int c = -1;
        if (available() > 0) {
            c = this.in.read();
            if (c == -1) {
                throw new IOException("Premature EOF before end-of-record.");
            }
            if (this.digest != null) {
                this.digest.update((byte) c);
            }
            incrementPosition();
        }
        return c;
    }
public int read ( ) throws IOException { int c = - 1 ; if ( available ( ) > 0 ) { c = this . in . read ( ) ; if ( c == - 1 ) { throw new IOException ( "Premature EOF before end-of-record." ) ; } if ( this . digest != null ) { this . digest . update ( ( byte ) c ) ; } incrementPosition ( ) ; } return c ; }
@return Next character in this Record content else -1 if at EOR.
@throws IOException