Class MultiPartStream
java.lang.Object
cool.scx.http.media.multi_part.MultiPartStream
- All Implemented Interfaces:
MultiPart,Iterable<MultiPartPart>,Iterator<MultiPartPart>
- Direct Known Subclasses:
MultiPartStreamCached
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected final byte[]protected static final byte[]protected booleanprotected final LinkedDataReader -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
CRLF_CRLF_BYTES
protected static final byte[] CRLF_CRLF_BYTES -
linkedDataReader
-
boundaryBytes
protected final byte[] boundaryBytes -
hasNextPart
protected boolean hasNextPart -
boundary
-
-
Constructor Details
-
MultiPartStream
-
-
Method Details
-
readToHeaders
-
readContentToByte
- Throws:
IOException
-
readNext
public boolean readNext() -
boundary
-
iterator
- Specified by:
iteratorin interfaceIterable<MultiPartPart>
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<MultiPartPart>
-
next
- Specified by:
nextin interfaceIterator<MultiPartPart>
-