public int read(byte[] b) throws IOException {int n = in.read(b);if (n == -1) {close();}return n;}

public int read ( byte [ ] b ) throws IOException { int n = in . read ( b ) ; if ( n == - 1 ) { close ( ) ; } return n ; }
public override int read(byte[] buffer){throw new System.NotImplementedException();}
