|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.upload.MultipartIterator
javazoom.upload.parsing.StrutsMultipartIterator
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 |
public static java.lang.String FILE_PREFIX
Constructor Detail |
public StrutsMultipartIterator(javax.servlet.http.HttpServletRequest request, int bufferSize, long maxSize, java.lang.String tempDir, java.util.Vector listeners) throws java.io.IOException
request
- HttpServletRequestbufferSize
- intmaxSize
- longtempDir
- Stringlisteners
- Vector
java.io.IOException
Method Detail |
public org.apache.struts.upload.MultipartElement getNextElement() throws java.io.IOException
java.io.IOException
protected org.apache.struts.upload.MultipartElement createFileMultipartElement() throws java.io.IOException
java.io.IOException
protected java.io.File createLocalFile() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |