Code example for ObjectInput

Methods: readByte

0
    } 
 
    public int read() 
      throws IOException
    { 
      int ch = _in.readByte() & 0xff;
       
      return ch;
    } 
 
    public int read(byte []buffer, int off, int length)
      throws IOExceptionbuffer[off] = _in.readByte();
 
      return 1; 
    } 
  } 
   
  static class OutputStreamWrapper extends OutputStream {
Contextual code suggestions in your IDE  Get Codota for Java