public class MultipartStream.ItemInputStream extends InputStream implements Closeable
InputStream for reading an items contents.| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
mark, markSupported, read, resetpublic long getBytesRead()
public int available()
              throws IOException
available in class InputStreamIOException - An I/O error occurs.public int read()
         throws IOException
read in class InputStreamIOException - An I/O error occurred.public int read(byte[] b,
       int off,
       int len)
         throws IOException
read in class InputStreamb - 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 Closeableclose in interface AutoCloseableclose in class InputStreamIOException - 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 InputStreambytes - Number of bytes to skip.IOException - An I/O error occurred.public boolean isClosed()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.