Code example for DataInputStream

Methods: available

0
   * @exception IOException 
   *              if an I/O error occurs. 
   */ 
  public int available() throws IOException { 
    if (!useWrap) {
      return inStream.available();
    } 
    return (ofinish - ostart);
  } 
 
  /** 
   * Closes this input stream and releases any system resources associated with 
   * the stream. 
   * <p> 
   * The <code>close</code> method of <code>SASLInputStream</code> calls the 
   * <code>close</code> method of its underlying input stream. 
   *  
   * @exception IOException 
   *              if an I/O error occurs. 
   */ 
  public void close() throws IOException {