Class MultiPartStreamCached
java.lang.Object
cool.scx.http.media.multi_part.MultiPartStreamCached
- All Implemented Interfaces:
MultiPart,Iterable<MultiPartPart>,Iterator<MultiPartPart>
-
Constructor Summary
ConstructorsConstructorDescriptionMultiPartStreamCached(InputStream inputStream, String boundary, Path cachePath) -
Method Summary
Modifier and TypeMethodDescriptionboundary()booleanhasNext()iterator()static booleanneedCached(ScxHttpHeaders headers) next()static PathreadContentToPath(org.apache.commons.fileupload2.core.MultipartInput multipartStream, Path path) 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
-
Constructor Details
-
MultiPartStreamCached
-
-
Method Details
-
needCached
-
readContentToPath
public static Path readContentToPath(org.apache.commons.fileupload2.core.MultipartInput multipartStream, Path path) throws IOException - Throws:
IOException
-
boundary
-
iterator
- Specified by:
iteratorin interfaceIterable<MultiPartPart>
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<MultiPartPart>
-
next
- Specified by:
nextin interfaceIterator<MultiPartPart>
-