org.ow2.opensuit.core.impl.multiparts
Class MultiPartsProcessor
java.lang.Object
org.ow2.opensuit.core.impl.multiparts.MultiPartsProcessor
public class MultiPartsProcessor
- extends java.lang.Object
Constructor Summary |
MultiPartsProcessor(javax.servlet.http.HttpServletRequest iRequest,
java.lang.String iCharSet,
int bufferSize)
|
MultiPartsProcessor(java.lang.String iContentType,
java.io.InputStream iInput,
java.lang.String iCharSet,
int bufferSize)
|
Method Summary |
IPart |
getCurrentPart()
Returns the current processing multipart entry |
java.lang.String |
getData(java.lang.String iName)
Returns the value associated to a data part previously read. |
IPart |
getNextPart()
Skips the current processing multipart entry, and loads the next one (if any). |
void |
init()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiPartsProcessor
public MultiPartsProcessor(javax.servlet.http.HttpServletRequest iRequest,
java.lang.String iCharSet,
int bufferSize)
throws java.io.IOException
- Throws:
java.io.IOException
MultiPartsProcessor
public MultiPartsProcessor(java.lang.String iContentType,
java.io.InputStream iInput,
java.lang.String iCharSet,
int bufferSize)
init
public void init()
throws java.io.IOException
- Throws:
java.io.IOException
getCurrentPart
public IPart getCurrentPart()
- Returns the current processing multipart entry
getNextPart
public IPart getNextPart()
throws java.io.IOException
- Skips the current processing multipart entry, and loads the next one (if any).
- Returns:
- the next multipart entry, or null if none could be found.
- Throws:
java.io.IOException
getData
public java.lang.String getData(java.lang.String iName)
- Returns the value associated to a data part previously read.
- Parameters:
iName
-
- Returns:
Copyright © 2008-2012 OW2 Consortium. All Rights Reserved.