java.lang.Object
java.io.InputStream
org.jvnet.mimepull.DataHead.ReadMultiStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
DataHead.ReadOnceStream
- Enclosing class:
DataHead
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
Field Details
-
current
Chunk current -
offset
int offset -
len
int len -
buf
byte[] buf -
closed
boolean closed
-
-
Constructor Details
-
ReadMultiStream
public ReadMultiStream()
-
-
Method Details
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
adjustInMemoryUsage
void adjustInMemoryUsage() -
fetch
Gets to the next chunk if we are done with the current one.- Returns:
- true if any data available
- Throws:
IOException
- when i/o error
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-