java.io.InputStream
, java.io.ObjectOutputStream
, java.io.ObjectInputStream
Modifier and Type | Method and Description |
---|---|
public int | Returns: the number of available bytes.Returns the number of bytes that can be read without blocking. |
public void | |
public int | |
public int | Returns: the total number of bytes read into the buffer, or-1 if there is no more data because the end of
the stream has been reached.the buffer into which the data is read b)Reads into an array of bytes. |
public int | Returns: the total number of bytes read into the buffer, or-1 if there is no more data because the end of
the stream has been reached.the buffer into which the data is read b, int the start offset of the data off, int the maximum number of bytes read len)Reads into an array of bytes. |
public Object | |
public long | Returns: the actual number of bytes skipped.the number of bytes to be skipped n)Skips n bytes of input. |
available | back to summary |
---|---|
public int available() throws IOException Returns the number of bytes that can be read without blocking.
|
close | back to summary |
---|---|
public void close() throws IOException Redeclares java. Closes the input stream. Must be called to release any resources associated with the stream.
|
read | back to summary |
---|---|
public int read() throws IOException Reads a byte of data. This method will block if no input is available.
|
read | back to summary |
---|---|
public int read(byte[] b) throws IOException Reads into an array of bytes. This method will block until some input is available.
|
read | back to summary |
---|---|
public int read(byte[] b, int off, int len) throws IOException Reads into an array of bytes. This method will block until some input is available.
|
readObject | back to summary |
---|---|
public Object readObject() throws ClassNotFoundException, IOException Read and return an object. The class that implements this interface defines where the object is "read" from.
|
skip | back to summary |
---|---|
public long skip(long n) throws IOException Skips n bytes of input.
|