Code example for DataInputStream

Methods: available

0
    return JournalType.BACKUP; 
  } 
 
  @Override 
  public int available() throws IOException { 
    return in.available();
  } 
 
  @Override 
  public int read() throws IOException { 
    return in.read();
  } 
 
  @Override 
  public int read(byte[] b, int off, int len) throws IOException {
    return in.read(b, off, len);
  } 
 
  @Override 
  public void close() throws IOException { 
    in.close();