A B C D F G I L M N P R S W

A

available() - Method in class weaver.file.multipart.PartInputStream
Returns the number of bytes that can be read from this input stream without blocking.

B

BufferedServletInputStream - class weaver.file.multipart.BufferedServletInputStream.
A BufferedServletInputStream wraps a ServletInputStream in order to provide input buffering and to avoid calling the the readLine method of the wrapped ServletInputStream.
BufferedServletInputStream(ServletInputStream) - Constructor for class weaver.file.multipart.BufferedServletInputStream
Creates a BufferedServletInputStream that wraps the provided ServletInputStream.

C

close() - Method in class weaver.file.multipart.PartInputStream
Closes this input stream and releases any system resources associated with the stream.

D

DefaultFileRenamePolicy - class weaver.file.multipart.DefaultFileRenamePolicy.
Implements a renaming policy that adds increasing integers to the body of any file that collides.
DefaultFileRenamePolicy() - Constructor for class weaver.file.multipart.DefaultFileRenamePolicy
 

F

FilePart - class weaver.file.multipart.FilePart.
A FilePart is an upload part which represents a INPUT TYPE="file" form parameter.
FileRenamePolicy - interface weaver.file.multipart.FileRenamePolicy.
An interface to provide a pluggable file renaming policy, particularly useful to handle naming conflicts with an existing file.
files - Variable in class weaver.file.multipart.MultipartRequest
 

G

getContentType() - Method in class weaver.file.multipart.FilePart
Returns the content type of the file data contained within.
getContentType(String) - Method in class weaver.file.multipart.MultipartRequest
Returns the content type of the specified file (as supplied by the client browser), or null if the file was not included in the upload.
getFile(String) - Method in class weaver.file.multipart.MultipartRequest
Returns a File object for the specified file saved on the server's filesystem, or null if the file was not included in the upload.
getFileInputStream(String) - Method in class weaver.file.multipart.MultipartRequest
Returns the InputStream of the specified file (as supplied by the client browser), or null if the file was not included in the upload.
getFileName() - Method in class weaver.file.multipart.FilePart
Returns the name that the file was stored with on the remote system, or null if the user didn't enter a file to be uploaded.
getFileName(String) - Method in class weaver.file.multipart.MultipartRequest
Returns the filesystem name of the specified file, or null if the file was not included in the upload.
getFilePath() - Method in class weaver.file.multipart.FilePart
Returns the full path and name of the file on the remote system, or null if the user didn't enter a file to be uploaded.
getFilePath(String) - Method in class weaver.file.multipart.MultipartRequest
Returns the original filesystem name of the specified file (before any renaming policy was applied), or null if the file was not included in the upload.
getFileUploadNames() - Method in class weaver.file.multipart.MultipartRequest
Returns the names of all the uploaded files as an Enumeration of Strings.
getInputStream() - Method in class weaver.file.multipart.FilePart
Returns an input stream which contains the contents of the file supplied.
getName() - Method in class weaver.file.multipart.Part
Returns the name of the form element that this Part corresponds to.
getOriginalFileName(String) - Method in class weaver.file.multipart.MultipartRequest
Returns the original filesystem name of the specified file (before any renaming policy was applied), or null if the file was not included in the upload.
getParameter(String) - Method in class weaver.file.multipart.MultipartRequest
Returns the value of the named parameter as a String, or null if the parameter was not sent or was sent without a value.
getParameterNames() - Method in class weaver.file.multipart.MultipartRequest
Returns the names of all the parameters as an Enumeration of Strings.
getParameterValues(String) - Method in class weaver.file.multipart.MultipartRequest
Returns the values of the named parameter as a String array, or null if the parameter was not sent.
getStringValue() - Method in class weaver.file.multipart.ParamPart
Returns the value of the parameter in as a string (using the parser-specified encoding to convert from bytes) or the empty string if the user entered no value for this parameter.
getStringValue(String) - Method in class weaver.file.multipart.ParamPart
Returns the value of the parameter in the supplied encoding or empty string if the user entered no value for this parameter.
getUploadedFile(String) - Method in class weaver.file.multipart.MultipartRequest
Returns a UploadedFile object for the specified file saved on the server's filesystem, or null if the file was not included in the upload.
getValue() - Method in class weaver.file.multipart.ParamPart
Returns the value of the parameter as an array of bytes or a zero length array if the user entered no value for this parameter.

I

isFile() - Method in class weaver.file.multipart.FilePart
Returns true to indicate this part is a file.
isFile() - Method in class weaver.file.multipart.Part
Returns true if this Part is a FilePart.
isParam() - Method in class weaver.file.multipart.ParamPart
Returns true to indicate this part is a parameter.
isParam() - Method in class weaver.file.multipart.Part
Returns true if this Part is a ParamPart.

L

LimitedServletInputStream - class weaver.file.multipart.LimitedServletInputStream.
A LimitedServletInputStream wraps another ServletInputStream in order to keep track of how many bytes have been read and detect when the Content-Length limit has been reached.
LimitedServletInputStream(ServletInputStream, int) - Constructor for class weaver.file.multipart.LimitedServletInputStream
Creates a LimitedServletInputStream with the specified length limit that wraps the provided ServletInputStream.

M

MacBinaryDecoderOutputStream - class weaver.file.multipart.MacBinaryDecoderOutputStream.
A MacBinaryDecoderOutput filters MacBinary files to normal files on the fly; optimized for speed more than readability.
MacBinaryDecoderOutputStream(OutputStream) - Constructor for class weaver.file.multipart.MacBinaryDecoderOutputStream
 
MultipartParser - class weaver.file.multipart.MultipartParser.
A utility class to handle multipart/form-data requests, the kind of requests that support file uploads.
MultipartParser(HttpServletRequest, int) - Constructor for class weaver.file.multipart.MultipartParser
Creates a MultipartParser from the specified request, which limits the upload size to the specified length, buffers for performance and prevent attempts to read past the amount specified by the Content-Length.
MultipartParser(HttpServletRequest, int, boolean, boolean) - Constructor for class weaver.file.multipart.MultipartParser
Creates a MultipartParser from the specified request, which limits the upload size to the specified length, and optionally buffers for performance and prevents attempts to read past the amount specified by the Content-Length.
MultipartParser(HttpServletRequest, int, boolean, boolean, String) - Constructor for class weaver.file.multipart.MultipartParser
Creates a MultipartParser from the specified request, which limits the upload size to the specified length, and optionally buffers for performance and prevents attempts to read past the amount specified by the Content-Length, and with a specified encoding.
MultipartRequest - class weaver.file.multipart.MultipartRequest.
A utility class to handle multipart/form-data requests, the kind of requests that support file uploads.
MultipartRequest(HttpServletRequest, int) - Constructor for class weaver.file.multipart.MultipartRequest
Constructs a new MultipartRequest to handle the specified request, saving any uploaded files to db , saveDirectory is null, and limiting the upload size to the specified length.
MultipartRequest(HttpServletRequest, String) - Constructor for class weaver.file.multipart.MultipartRequest
Constructs a new MultipartRequest to handle the specified request, saving any uploaded files to the given directory, and limiting the upload size to 1 Megabyte.
MultipartRequest(HttpServletRequest, String, int, boolean, boolean, String) - Constructor for class weaver.file.multipart.MultipartRequest
Constructs a new MultipartRequest to handle the specified request, saving any uploaded files to the given directory, and limiting the upload size to the specified length.
MultipartRequest(HttpServletRequest, String, int, FileRenamePolicy, boolean, boolean, String) - Constructor for class weaver.file.multipart.MultipartRequest
Constructs a new MultipartRequest to handle the specified request, saving any uploaded files to the given directory, and limiting the upload size to the specified length.
MultipartRequest(HttpServletRequest, String, int, String, boolean, boolean, String) - Constructor for class weaver.file.multipart.MultipartRequest
Constructs a new MultipartRequest to handle the specified request, saving any uploaded files to the given directory, and limiting the upload size to the specified length.
MultipartRequest(HttpServletRequest, String, int, String, FileRenamePolicy, boolean, boolean, String) - Constructor for class weaver.file.multipart.MultipartRequest
Constructs a new MultipartRequest to handle the specified request, saving any uploaded files to the given directory, and limiting the upload size to the specified length.
MultipartRequest(HttpServletRequest, String, String, boolean, boolean, String) - Constructor for class weaver.file.multipart.MultipartRequest
Constructs a new MultipartRequest to handle the specified request, saving any uploaded files to the given directory, and limiting the upload size to the specified length.
MultipartRequest(ServletRequest, String) - Constructor for class weaver.file.multipart.MultipartRequest
Constructor with an old signature, kept for backward compatibility.
MultipartRequest(ServletRequest, String, int) - Constructor for class weaver.file.multipart.MultipartRequest
Constructor with an old signature, kept for backward compatibility.

N

needZip(boolean) - Method in class weaver.file.multipart.FilePart
set need zip.
needZipencrypt(boolean) - Method in class weaver.file.multipart.FilePart
set need zip.

P

parameters - Variable in class weaver.file.multipart.MultipartRequest
 
ParamPart - class weaver.file.multipart.ParamPart.
A ParamPart is an upload part which represents a normal INPUT (for example a non TYPE="file") form parameter.
Part - class weaver.file.multipart.Part.
A Part is an abstract upload part which represents an INPUT form element in a multipart/form-data form submission.
PartInputStream - class weaver.file.multipart.PartInputStream.
A PartInputStream filters a ServletInputStream, providing access to a single MIME part contained with in which ends with the boundary specified.

R

read() - Method in class weaver.file.multipart.BufferedServletInputStream
Implement buffering on top of the read method of the wrapped ServletInputStream.
read() - Method in class weaver.file.multipart.LimitedServletInputStream
Implement length limitation on top of the read method of the wrapped ServletInputStream.
read() - Method in class weaver.file.multipart.PartInputStream
See the general contract of the read method of InputStream.
read(byte[]) - Method in class weaver.file.multipart.PartInputStream
See the general contract of the read method of InputStream.
read(byte[], int, int) - Method in class weaver.file.multipart.BufferedServletInputStream
Implement buffering on top of the read method of the wrapped ServletInputStream.
read(byte[], int, int) - Method in class weaver.file.multipart.LimitedServletInputStream
Implement length limitation on top of the read method of the wrapped ServletInputStream.
read(byte[], int, int) - Method in class weaver.file.multipart.PartInputStream
See the general contract of the read method of InputStream.
readLine(byte[], int, int) - Method in class weaver.file.multipart.BufferedServletInputStream
Implement buffering on top of the readLine method of the wrapped ServletInputStream.
readLine(byte[], int, int) - Method in class weaver.file.multipart.LimitedServletInputStream
Implement length limitation on top of the readLine method of the wrapped ServletInputStream.
readNextPart() - Method in class weaver.file.multipart.MultipartParser
Read the next part arriving in the stream.
rename(File) - Method in class weaver.file.multipart.DefaultFileRenamePolicy
 
rename(File) - Method in interface weaver.file.multipart.FileRenamePolicy
Returns a File object holding a new name for the specified file.

S

setEncoding(String) - Method in class weaver.file.multipart.MultipartParser
Sets the encoding used to parse from here onward.
setEncrypt(String) - Method in class weaver.file.multipart.FilePart
set need zip.
setRenamePolicy(FileRenamePolicy) - Method in class weaver.file.multipart.FilePart
Puts in place the specified policy for handling file name collisions.

W

write(byte[]) - Method in class weaver.file.multipart.MacBinaryDecoderOutputStream
 
write(byte[], int, int) - Method in class weaver.file.multipart.MacBinaryDecoderOutputStream
 
write(int) - Method in class weaver.file.multipart.MacBinaryDecoderOutputStream
 
writeTo(OutputStream) - Method in class weaver.file.multipart.FilePart
Write this file part to the given output stream.
writeTo(String) - Method in class weaver.file.multipart.FilePart
Write this file part to a file or directory.

A B C D F G I L M N P R S W