InputStream

java.io.InputStream is the superclass of all classes representing an input stream of bytes.

                             
    InputStream                        
     |                       
     |--BufferedInputStream                    
     |                       
     |--ByteArrayInputStream                    
     |                       
     |--DataInputStream                    
     |                       
     |--FilterInputStream                    
     |                       
     |--OutputStream                    
     |                       
     |--PushbackInputStream                    
                             

ReturnMethodSummary
intavailable()Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream.
voidclose()Closes this input stream and releases any system resources associated with the stream.
voidmark(int readlimit)Marks the current position.
booleanmarkSupported()if this input stream supports the mark and reset methods.
abstractint read()Reads the next byte.
intread(byte[] b)Reads some number of bytes and stores them into the buffer array b.
intread(byte[] b, int off, int len)Reads up to len bytes of data into an array of bytes.
voidreset()Repositions this stream to the position at the time the mark method was last called.
longskip(long n)Skips over and discards n bytes.
Revised from Open JDK source code
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.