public class MultiInputStream
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REVISION |
| Constructor and Description |
|---|
MultiInputStream(java.io.InputStream[] array) |
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Returns the number of bytes that can be read from this input
stream without blocking.
|
void |
close()
Closes this input stream and releases any system resources
associated with the stream.
|
void |
mark(int readlimit)
Marks the current position in this input stream.
|
boolean |
markSupported()
Tests if this input stream supports the
mark
and reset methods. |
int |
read()
Reads the next byte of data from this input stream.
|
public static final java.lang.String REVISION
public int read()
throws java.io.IOException
int in the range
0 to 255. If no byte is available
because the end of the stream has been reached, the value
-1 is returned. This method blocks until input data
is available, the end of the stream is detected, or an exception
is thrown.read in class java.io.InputStream-1 if the end of the
stream is reached.java.io.IOException - if an I/O error occurs.public int available()
throws java.io.IOException
InputStream returns 0. This method
should be overridden by subclasses.available in class java.io.InputStreamjava.io.IOException - if an I/O error occurs.public void close()
throws java.io.IOException
The close method of InputStream does nothing.
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOException - if an I/O error occurs.public void mark(int readlimit)
reset method repositions this stream at
the last marked position so that subsequent reads re-read the same
bytes.
The readlimit arguments tells this input stream to
allow that many bytes to be read before the mark position gets
invalidated.
mark in class java.io.InputStreamreadlimit - the maximum limit of bytes that can be read before
the mark position becomes invalid.InputStream.reset()public boolean markSupported()
mark
and reset methods. The markSupported
method of InputStream returns false.markSupported in class java.io.InputStreamtrue if this true type supports the mark and reset
method; false otherwise.InputStream.mark(int),
InputStream.reset()Copyright © 2001-2017 Jalios SA. All Rights Reserved.