javazoom.upload.parsing
Class StrutsMultipartIterator

java.lang.Object
  extended byorg.apache.struts.upload.MultipartIterator
      extended byjavazoom.upload.parsing.StrutsMultipartIterator

public class StrutsMultipartIterator
extends org.apache.struts.upload.MultipartIterator

This class extends Struts MultipartIterator to provide upload progress status.


Field Summary
static java.lang.String FILE_PREFIX
          Temporary file prefix : Default is strts
 
Fields inherited from class org.apache.struts.upload.MultipartIterator
boundary, bufferSize, contentLength, contentType, diskBufferSize, HEADER_CONTENT_DISPOSITION, HEADER_CONTENT_TYPE, inputStream, maxLengthExceeded, maxSize, MESSAGE_CANNOT_RETRIEVE_BOUNDARY, request, tempDir
 
Constructor Summary
StrutsMultipartIterator(javax.servlet.http.HttpServletRequest request, int bufferSize, long maxSize, java.lang.String tempDir, java.util.Vector listeners)
          Custom Multipart Iterator supporting upload listeners.
 
Method Summary
protected  org.apache.struts.upload.MultipartElement createFileMultipartElement()
          Create a multipart element instance representing the file in the stream.
protected  java.io.File createLocalFile()
          Creates a file on disk from the current mulitpart element.
 org.apache.struts.upload.MultipartElement getNextElement()
          Struts code.
 
Methods inherited from class org.apache.struts.upload.MultipartIterator
createTextMultipartElement, getBufferSize, getElementEncoding, getMaxSize, isMaxLengthExceeded, parseRequest, setBufferSize, setMaxSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_PREFIX

public static java.lang.String FILE_PREFIX
Temporary file prefix : Default is strts

Constructor Detail

StrutsMultipartIterator

public StrutsMultipartIterator(javax.servlet.http.HttpServletRequest request,
                               int bufferSize,
                               long maxSize,
                               java.lang.String tempDir,
                               java.util.Vector listeners)
                        throws java.io.IOException
Custom Multipart Iterator supporting upload listeners.

Parameters:
request - HttpServletRequest
bufferSize - int
maxSize - long
tempDir - String
listeners - Vector
Throws:
java.io.IOException
Method Detail

getNextElement

public org.apache.struts.upload.MultipartElement getNextElement()
                                                         throws java.io.IOException
Struts code.

Returns:
MultipartElement
Throws:
java.io.IOException

createFileMultipartElement

protected org.apache.struts.upload.MultipartElement createFileMultipartElement()
                                                                        throws java.io.IOException
Create a multipart element instance representing the file in the stream.

Returns:
MultipartElement
Throws:
java.io.IOException

createLocalFile

protected java.io.File createLocalFile()
                                throws java.io.IOException
Creates a file on disk from the current mulitpart element.

Returns:
File
Throws:
java.io.IOException