public class MultiPartInputStream extends Object
Modifier and Type | Class and Description |
---|---|
class |
MultiPartInputStream.MultiPart |
Modifier and Type | Field and Description |
---|---|
static MultipartConfigElement |
__DEFAULT_MULTIPART_CONFIG |
protected MultipartConfigElement |
_config |
protected String |
_contentType |
protected File |
_contextTmpDir |
protected InputStream |
_in |
protected MultiMap<String> |
_parts |
protected File |
_tmpDir |
Constructor and Description |
---|
MultiPartInputStream(InputStream in,
String contentType,
MultipartConfigElement config,
File contextTmpDir) |
public static final MultipartConfigElement __DEFAULT_MULTIPART_CONFIG
protected InputStream _in
protected MultipartConfigElement _config
protected String _contentType
protected File _tmpDir
protected File _contextTmpDir
public MultiPartInputStream(InputStream in, String contentType, MultipartConfigElement config, File contextTmpDir)
in
- Request input streamcontentType
- Content-Type headerconfig
- MultipartConfigElementcontextTmpDir
- javax.servlet.context.tempdirpublic Collection<Part> getParts() throws IOException, ServletException
IOException
ServletException
public Part getPart(String name) throws IOException, ServletException
IOException
ServletException
protected void parse() throws IOException, ServletException
IOException
ServletException
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.