org.objectweb.telosys.upload
Class MultipartParser

java.lang.Object
  extended byorg.objectweb.telosys.upload.MultipartParser

public class MultipartParser
extends java.lang.Object

Multipart request parser


Constructor Summary
MultipartParser(javax.servlet.http.HttpServletRequest req, long maxSize)
          Constructor without limit length
MultipartParser(javax.servlet.http.HttpServletRequest req, long maxSize, boolean buffer, boolean limitLength)
          Constructor with specific limit length
 
Method Summary
 Part readNextPart()
          Reads and returns the next part in the stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipartParser

public MultipartParser(javax.servlet.http.HttpServletRequest req,
                       long maxSize)
                throws java.io.IOException
Constructor without limit length


MultipartParser

public MultipartParser(javax.servlet.http.HttpServletRequest req,
                       long maxSize,
                       boolean buffer,
                       boolean limitLength)
                throws java.io.IOException
Constructor with specific limit length

Method Detail

readNextPart

public Part readNextPart()
                  throws java.io.IOException
Reads and returns the next part in the stream

Returns:
: the next 'Part' or null at the end
Throws:
java.io.IOException