Code example for SessionInputBuffer

Methods: read

0
        } 
 
        if (pos + len > contentLength) {
            len = (int) (contentLength - pos);
        } 
        int count = this.in.read(b, off, len);
        pos += count;
        return count;
    } 
 
 
    /** 
     * Read more bytes from the stream. 
     * @param b The byte array to put the new data in. 
     * @return The number of bytes read into the buffer. 
     * @throws IOException If an IO problem occurs 
     * @see java.io.InputStream#read(byte[]) 
     */ 
    public int read(byte[] b) throws IOException {
        return read(b, 0, b.length);
    }