org.talika.tarsis.filters.upload
Class MultipartIterator

java.lang.Object
  extended by org.talika.tarsis.filters.upload.MultipartIterator

public final class MultipartIterator
extends java.lang.Object

Multipart iterator allows us to iterate multipart request element as like a java.util.Iterator although it doesn't implement this interface.

Version:
$Revision: 127 $
Author:
Jose M. Palomar

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

MultipartIterator

public MultipartIterator(javax.servlet.ServletRequest servletRequest,
                         int maxSize,
                         int bufferSize,
                         java.lang.String tmpDir)
                  throws MultipartRequestException,
                         java.io.IOException
Creates a new MultipartIterator using given client's request.

Parameters:
servletRequest - ServletRequest client's request.
maxSize - int max allowad size.
bufferSize - int buffer size.
tmpDir - String temporal directory.
Throws:
MultipartRequestException - if there is any error procesing multipart request.
java.io.IOException - if there is any I/O error.
Method Detail

hasNext

public boolean hasNext()
                throws MultipartRequestException,
                       java.io.IOException
Returns true if the iteration has more elements.

Returns:
boolean true if the iteration has more elements.
Throws:
MultipartRequestException - if there is any error procesing multipart request.
java.io.IOException - if there is any I/O error.

next

public MultipartElement next()
                      throws MultipartRequestException,
                             java.io.IOException
Returns the next element in the iteration.

Returns:
MultipartElement next element in the iteration.
Throws:
MultipartRequestException - if there is any error procesing multipart request.
java.io.IOException - if there is any I/O error.


Copyright © 2002-2012 Talika Open Source Group. All Rights Reserved.