public class OwUpStreamParser extends Object
A utility class to handle multipart/form-data
requests, the kind
of requests that support file uploads. This class uses a "pull" model where
the reading of incoming files and parameters is controlled by the client code,
which allows incoming files to be stored into any OutputStream
.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor and Description |
---|
OwUpStreamParser(javax.servlet.http.HttpServletRequest req_p)
Creates a
MultipartParser from the specified request buffers for performance |
Modifier and Type | Method and Description |
---|---|
OwMultiPart |
readNextPart()
Read the next part arriving in the stream.
|
void |
tidyUp()
tidy up all resources, especially close open streams
|
public OwUpStreamParser(javax.servlet.http.HttpServletRequest req_p) throws IOException
MultipartParser
from the specified request buffers for performancereq_p
- HttpServletRequest the servlet request.IOException
- if an input or output exception has occurred.public OwMultiPart readNextPart() throws IOException
FilePart
, or
null
if there are no more parts to read.IOException
- if an input or output exception has occurred.public void tidyUp() throws IOException
IOException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.