|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream org.apache.commons.fileupload.MultipartStream.ItemInputStream
public class MultipartStream.ItemInputStream
An InputStream
for reading an items contents.
Method Summary | |
---|---|
int |
available()
Returns the number of bytes, which are currently available, without blocking. |
void |
close()
Closes the input stream. |
void |
close(boolean pCloseUnderlying)
Closes the input stream. |
long |
getBytesRead()
Returns the number of bytes, which have been read by the stream. |
boolean |
isClosed()
Returns, whether the stream is closed. |
int |
read()
Returns the next byte in the stream. |
int |
read(byte[] b,
int off,
int len)
Reads bytes into the given buffer. |
long |
skip(long bytes)
Skips the given number of bytes. |
Methods inherited from class java.io.InputStream |
---|
mark, markSupported, read, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public long getBytesRead()
public int available() throws IOException
available
in class InputStream
IOException
- An I/O error occurs.public int read() throws IOException
read
in class InputStream
IOException
- An I/O error occurred.public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
b
- The destination buffer, where to write to.off
- Offset of the first byte in the buffer.len
- Maximum number of bytes to read.
IOException
- An I/O error occurred.public void close() throws IOException
close
in interface Closeable
close
in class InputStream
IOException
- An I/O error occurred.public void close(boolean pCloseUnderlying) throws IOException
pCloseUnderlying
- Whether to close the underlying stream
(hard close)
IOException
- An I/O error occurred.public long skip(long bytes) throws IOException
skip
in class InputStream
bytes
- Number of bytes to skip.
IOException
- An I/O error occurred.public boolean isClosed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |