|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.talika.tarsis.filters.upload.MultipartIterator
public final class MultipartIterator
Multipart iterator allows us to iterate multipart request element as like a
java.util.Iterator
although it doesn't implement this interface.
Constructor Summary | |
---|---|
MultipartIterator(javax.servlet.ServletRequest servletRequest,
int maxSize,
int bufferSize,
java.lang.String tmpDir)
Creates a new MultipartIterator using given client's request. |
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if the iteration has more elements. |
MultipartElement |
next()
Returns the next element in the iteration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultipartIterator(javax.servlet.ServletRequest servletRequest, int maxSize, int bufferSize, java.lang.String tmpDir) throws MultipartRequestException, java.io.IOException
MultipartIterator
using given client's request.
servletRequest
- ServletRequest client's request.maxSize
- int max allowad size.bufferSize
- int buffer size.tmpDir
- String temporal directory.
MultipartRequestException
- if there is any error procesing multipart
request.
java.io.IOException
- if there is any I/O error.Method Detail |
---|
public boolean hasNext() throws MultipartRequestException, java.io.IOException
true
if the iteration has more elements.
true
if the iteration has more elements.
MultipartRequestException
- if there is any error procesing multipart
request.
java.io.IOException
- if there is any I/O error.public MultipartElement next() throws MultipartRequestException, java.io.IOException
MultipartRequestException
- if there is any error procesing multipart
request.
java.io.IOException
- if there is any I/O error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |