- cachedContent - Variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
Cached contents of the file.
- cause - Variable in exception org.apache.commons.fileupload.FileUploadBase.FileUploadIOException
-
The exceptions cause; we overwrite the parent
classes field, which is available since Java
1.4 only.
- cause - Variable in exception org.apache.commons.fileupload.FileUploadBase.IOFileUploadException
-
The exceptions cause; we overwrite the parent
classes field, which is available since Java
1.4 only.
- cause - Variable in exception org.apache.commons.fileupload.FileUploadException
-
The exceptions cause.
- chars - Variable in class org.apache.commons.fileupload.ParameterParser
-
String to be parsed.
- checkLimit() - Method in class org.apache.commons.fileupload.util.LimitedInputStream
-
Called to check, whether the input streams
limit is reached.
- close() - Method in class org.apache.commons.fileupload.FileUploadBase.FileItemIteratorImpl.FileItemStreamImpl
-
Closes the file item.
- close() - Method in class org.apache.commons.fileupload.MultipartStream.ItemInputStream
-
Closes the input stream.
- close(boolean) - Method in class org.apache.commons.fileupload.MultipartStream.ItemInputStream
-
Closes the input stream.
- close() - Method in interface org.apache.commons.fileupload.util.Closeable
-
Closes the object.
- close() - Method in class org.apache.commons.fileupload.util.LimitedInputStream
-
Closes this input stream and releases any system resources
associated with the stream.
- Closeable - Interface in org.apache.commons.fileupload.util
-
Interface of an object, which may be closed.
- closed - Variable in class org.apache.commons.fileupload.MultipartStream.ItemInputStream
-
Whether the stream is already closed.
- closed - Variable in class org.apache.commons.fileupload.util.LimitedInputStream
-
Whether this stream is already closed.
- CONTENT_DISPOSITION - Static variable in class org.apache.commons.fileupload.FileUploadBase
-
HTTP content disposition header name.
- CONTENT_LENGTH - Static variable in class org.apache.commons.fileupload.FileUploadBase
-
HTTP content length header name.
- CONTENT_TYPE - Static variable in class org.apache.commons.fileupload.FileUploadBase
-
HTTP content type header name.
- contentLength - Variable in class org.apache.commons.fileupload.MultipartStream.ProgressNotifier
-
Number of expected bytes, if known, or -1.
- contentType - Variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
The content type passed by the browser, or null
if
not defined.
- contentType - Variable in class org.apache.commons.fileupload.FileUploadBase.FileItemIteratorImpl.FileItemStreamImpl
-
The file items content type.
- contextDestroyed(ServletContextEvent) - Method in class org.apache.commons.fileupload.servlet.FileCleanerCleanup
-
Called when the web application is being destroyed.
- contextInitialized(ServletContextEvent) - Method in class org.apache.commons.fileupload.servlet.FileCleanerCleanup
-
Called when the web application is initialized.
- copy(InputStream, OutputStream, boolean) - Static method in class org.apache.commons.fileupload.util.Streams
-
Copies the contents of the given InputStream
to the given OutputStream
.
- copy(InputStream, OutputStream, boolean, byte[]) - Static method in class org.apache.commons.fileupload.util.Streams
-
Copies the contents of the given InputStream
to the given OutputStream
.
- count - Variable in class org.apache.commons.fileupload.util.LimitedInputStream
-
The current number of bytes.
- counter - Static variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
Counter used in unique identifier generation.
- CR - Static variable in class org.apache.commons.fileupload.MultipartStream
-
The Carriage Return ASCII character value.
- createItem(String, String, boolean, String) - Method in class org.apache.commons.fileupload.DefaultFileItemFactory
-
- createItem(String, String, boolean, String) - Method in class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
Create a new
DiskFileItem
instance from the supplied parameters and the local factory
configuration.
- createItem(String, String, boolean, String) - Method in interface org.apache.commons.fileupload.FileItemFactory
-
Create a new
FileItem
instance from the supplied parameters and
any local factory configuration.
- createItem(Map, boolean) - Method in class org.apache.commons.fileupload.FileUploadBase
-
- currentFieldName - Variable in class org.apache.commons.fileupload.FileUploadBase.FileItemIteratorImpl
-
The current items field name.
- currentItem - Variable in class org.apache.commons.fileupload.FileUploadBase.FileItemIteratorImpl
-
The item, which we currently process.
- FIELD_SEPARATOR - Static variable in class org.apache.commons.fileupload.MultipartStream
-
A byte sequence that that follows a delimiter that will be
followed by an encapsulation (CRLF
).
- fieldName - Variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
The name of the form field as provided by the browser.
- fieldName - Variable in class org.apache.commons.fileupload.FileUploadBase.FileItemIteratorImpl.FileItemStreamImpl
-
The file items field name.
- FILE_CLEANING_TRACKER_ATTRIBUTE - Static variable in class org.apache.commons.fileupload.servlet.FileCleanerCleanup
-
Attribute name, which is used for storing an instance of
FileCleaningTracker
in the web application.
- FileCleanerCleanup - Class in org.apache.commons.fileupload.servlet
-
A servlet context listener, which ensures that the
FileCleaner's
reaper thread is terminated,
when the web application is destroyed.
- FileCleanerCleanup() - Constructor for class org.apache.commons.fileupload.servlet.FileCleanerCleanup
-
- fileCleaningTracker - Variable in class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
The instance of FileCleaningTracker
, which is responsible
for deleting temporary files.
- FileItem - Interface in org.apache.commons.fileupload
-
This class represents a file or form item that was received within a
multipart/form-data
POST request.
- fileItemFactory - Variable in class org.apache.commons.fileupload.DiskFileUpload
-
Deprecated.
The factory to use to create new form items.
- FileItemFactory - Interface in org.apache.commons.fileupload
-
A factory interface for creating
FileItem
instances.
- fileItemFactory - Variable in class org.apache.commons.fileupload.FileUpload
-
The factory to use to create new form items.
- FileItemHeaders - Interface in org.apache.commons.fileupload
-
This class provides support for accessing the headers for a file or form
item that was received within a multipart/form-data
POST
request.
- FileItemHeadersImpl - Class in org.apache.commons.fileupload.util
-
- FileItemHeadersImpl() - Constructor for class org.apache.commons.fileupload.util.FileItemHeadersImpl
-
- FileItemHeadersSupport - Interface in org.apache.commons.fileupload
-
Interface that will indicate that
FileItem
or
FileItemStream
implementations will accept the headers read for the item.
- FileItemIterator - Interface in org.apache.commons.fileupload
-
- FileItemIteratorImpl(RequestContext) - Constructor for class org.apache.commons.fileupload.FileUploadBase.FileItemIteratorImpl
-
Creates a new instance.
- FileItemStream - Interface in org.apache.commons.fileupload
-
This interface provides access to a file or form item that was
received within a multipart/form-data
POST request.
- FileItemStream.ItemSkippedException - Exception in org.apache.commons.fileupload
-
This exception is thrown, if an attempt is made to read
data from the
InputStream
, which has been returned
by
FileItemStream.openStream()
, after
Iterator.hasNext()
has been invoked on the
iterator, which created the
FileItemStream
.
- FileItemStreamImpl(String, String, String, boolean, long) - Constructor for class org.apache.commons.fileupload.FileUploadBase.FileItemIteratorImpl.FileItemStreamImpl
-
Creates a new instance.
- fileName - Variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
The original filename in the user's filesystem.
- FileSizeLimitExceededException(String, long, long) - Constructor for exception org.apache.commons.fileupload.FileUploadBase.FileSizeLimitExceededException
-
Constructs a SizeExceededException
with
the specified detail message, and actual and permitted sizes.
- fileSizeMax - Variable in class org.apache.commons.fileupload.FileUploadBase
-
- FileUpload - Class in org.apache.commons.fileupload
-
High level API for processing file uploads.
- FileUpload() - Constructor for class org.apache.commons.fileupload.FileUpload
-
Constructs an uninitialised instance of this class.
- FileUpload(FileItemFactory) - Constructor for class org.apache.commons.fileupload.FileUpload
-
Constructs an instance of this class which uses the supplied factory to
create FileItem
instances.
- FileUploadBase - Class in org.apache.commons.fileupload
-
High level API for processing file uploads.
- FileUploadBase() - Constructor for class org.apache.commons.fileupload.FileUploadBase
-
- FileUploadBase.FileItemIteratorImpl - Class in org.apache.commons.fileupload
-
- FileUploadBase.FileItemIteratorImpl.FileItemStreamImpl - Class in org.apache.commons.fileupload
-
- FileUploadBase.FileSizeLimitExceededException - Exception in org.apache.commons.fileupload
-
Thrown to indicate that A files size exceeds the configured maximum.
- FileUploadBase.FileUploadIOException - Exception in org.apache.commons.fileupload
-
- FileUploadBase.InvalidContentTypeException - Exception in org.apache.commons.fileupload
-
Thrown to indicate that the request is not a multipart request.
- FileUploadBase.IOFileUploadException - Exception in org.apache.commons.fileupload
-
Thrown to indicate an IOException.
- FileUploadBase.SizeException - Exception in org.apache.commons.fileupload
-
This exception is thrown, if a requests permitted size
is exceeded.
- FileUploadBase.SizeLimitExceededException - Exception in org.apache.commons.fileupload
-
Thrown to indicate that the request size exceeds the configured maximum.
- FileUploadBase.UnknownSizeException - Exception in org.apache.commons.fileupload
-
- FileUploadException - Exception in org.apache.commons.fileupload
-
Exception for errors encountered while processing the request.
- FileUploadException() - Constructor for exception org.apache.commons.fileupload.FileUploadException
-
Constructs a new FileUploadException
without message.
- FileUploadException(String) - Constructor for exception org.apache.commons.fileupload.FileUploadException
-
Constructs a new FileUploadException
with specified detail
message.
- FileUploadException(String, Throwable) - Constructor for exception org.apache.commons.fileupload.FileUploadException
-
Creates a new FileUploadException
with the given
detail message and cause.
- FileUploadIOException(FileUploadException) - Constructor for exception org.apache.commons.fileupload.FileUploadBase.FileUploadIOException
-
Creates a FileUploadIOException
with the
given cause.
- finalize() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Removes the file contents from the temporary storage.
- findByte(byte, int) - Method in class org.apache.commons.fileupload.MultipartStream
-
Searches for a byte of specified value in the buffer
,
starting at the specified position
.
- findNextItem() - Method in class org.apache.commons.fileupload.FileUploadBase.FileItemIteratorImpl
-
Called for finding the nex item, if any.
- findSeparator() - Method in class org.apache.commons.fileupload.MultipartStream
-
Searches for the boundary
in the buffer
region delimited by head
and tail
.
- findSeparator() - Method in class org.apache.commons.fileupload.MultipartStream.ItemInputStream
-
Called for finding the separator.
- FORM_DATA - Static variable in class org.apache.commons.fileupload.FileUploadBase
-
Content-disposition value for form data.
- formField - Variable in class org.apache.commons.fileupload.FileUploadBase.FileItemIteratorImpl.FileItemStreamImpl
-
Whether the file item is a form field.
- get() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns the contents of the file as an array of bytes.
- get() - Method in interface org.apache.commons.fileupload.FileItem
-
Returns the contents of the file item as an array of bytes.
- getActualSize() - Method in exception org.apache.commons.fileupload.FileUploadBase.SizeException
-
Retrieves the actual size of the request.
- getBoundary(String) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Retrieves the boundary from the Content-type
header.
- getBytesRead() - Method in class org.apache.commons.fileupload.MultipartStream.ItemInputStream
-
Returns the number of bytes, which have been read
by the stream.
- getCause() - Method in exception org.apache.commons.fileupload.FileUploadBase.FileUploadIOException
-
Returns the exceptions cause.
- getCause() - Method in exception org.apache.commons.fileupload.FileUploadBase.IOFileUploadException
-
Returns the exceptions cause.
- getCause() - Method in exception org.apache.commons.fileupload.FileUploadException
-
- getCharacterEncoding() - Method in class org.apache.commons.fileupload.portlet.PortletRequestContext
-
Retrieve the character encoding for the request.
- getCharacterEncoding() - Method in interface org.apache.commons.fileupload.RequestContext
-
Retrieve the character encoding for the request.
- getCharacterEncoding() - Method in class org.apache.commons.fileupload.servlet.ServletRequestContext
-
Retrieve the character encoding for the request.
- getCharSet() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns the content charset passed by the agent or null
if
not defined.
- getContentLength(FileItemHeaders) - Method in class org.apache.commons.fileupload.FileUploadBase.FileItemIteratorImpl
-
- getContentLength() - Method in class org.apache.commons.fileupload.portlet.PortletRequestContext
-
Retrieve the content length of the request.
- getContentLength() - Method in interface org.apache.commons.fileupload.RequestContext
-
Retrieve the content length of the request.
- getContentLength() - Method in class org.apache.commons.fileupload.servlet.ServletRequestContext
-
Retrieve the content length of the request.
- getContentType() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns the content type passed by the agent or null
if
not defined.
- getContentType() - Method in interface org.apache.commons.fileupload.FileItem
-
Returns the content type passed by the browser or null
if
not defined.
- getContentType() - Method in interface org.apache.commons.fileupload.FileItemStream
-
Returns the content type passed by the browser or null
if
not defined.
- getContentType() - Method in class org.apache.commons.fileupload.FileUploadBase.FileItemIteratorImpl.FileItemStreamImpl
-
Returns the items content type, or null.
- getContentType() - Method in class org.apache.commons.fileupload.portlet.PortletRequestContext
-
Retrieve the content type of the request.
- getContentType() - Method in interface org.apache.commons.fileupload.RequestContext
-
Retrieve the content type of the request.
- getContentType() - Method in class org.apache.commons.fileupload.servlet.ServletRequestContext
-
Retrieve the content type of the request.
- getFieldName() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns the name of the field in the multipart form corresponding to
this file item.
- getFieldName() - Method in interface org.apache.commons.fileupload.FileItem
-
Returns the name of the field in the multipart form corresponding to
this file item.
- getFieldName() - Method in interface org.apache.commons.fileupload.FileItemStream
-
Returns the name of the field in the multipart form corresponding to
this file item.
- getFieldName() - Method in class org.apache.commons.fileupload.FileUploadBase.FileItemIteratorImpl.FileItemStreamImpl
-
Returns the items field name.
- getFieldName(FileItemHeaders) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Retrieves the field name from the Content-disposition
header.
- getFieldName(String) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Returns the field name, which is given by the content-disposition
header.
- getFieldName(Map) - Method in class org.apache.commons.fileupload.FileUploadBase
-
- getFileCleaningTracker() - Method in class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
Returns the tracker, which is responsible for deleting temporary
files.
- getFileCleaningTracker(ServletContext) - Static method in class org.apache.commons.fileupload.servlet.FileCleanerCleanup
-
Returns the instance of FileCleaningTracker
, which is
associated with the given ServletContext
.
- getFileItemFactory() - Method in class org.apache.commons.fileupload.DiskFileUpload
-
- getFileItemFactory() - Method in class org.apache.commons.fileupload.FileUpload
-
Returns the factory class used when creating file items.
- getFileItemFactory() - Method in class org.apache.commons.fileupload.FileUploadBase
-
Returns the factory class used when creating file items.
- getFileName(Map) - Method in class org.apache.commons.fileupload.FileUploadBase
-
- getFileName(FileItemHeaders) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Retrieves the file name from the Content-disposition
header.
- getFileName(String) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Returns the given content-disposition headers file name.
- getFileSizeMax() - Method in class org.apache.commons.fileupload.FileUploadBase
-
- getHeader(String) - Method in interface org.apache.commons.fileupload.FileItemHeaders
-
Returns the value of the specified part header as a String
.
- getHeader(Map, String) - Method in class org.apache.commons.fileupload.FileUploadBase
-
- getHeader(String) - Method in class org.apache.commons.fileupload.util.FileItemHeadersImpl
-
- getHeaderEncoding() - Method in class org.apache.commons.fileupload.FileUploadBase
-
Retrieves the character encoding used when reading the headers of an
individual part.
- getHeaderEncoding() - Method in class org.apache.commons.fileupload.MultipartStream
-
Retrieves the character encoding used when reading the headers of an
individual part.
- getHeaderNames() - Method in interface org.apache.commons.fileupload.FileItemHeaders
-
Returns an Enumeration
of all the header names.
- getHeaderNames() - Method in class org.apache.commons.fileupload.util.FileItemHeadersImpl
-
- getHeaders() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns the file item headers.
- getHeaders(String) - Method in interface org.apache.commons.fileupload.FileItemHeaders
-
Returns all the values of the specified item header as an
Enumeration
of String
objects.
- getHeaders() - Method in interface org.apache.commons.fileupload.FileItemHeadersSupport
-
Returns the collection of headers defined locally within this item.
- getHeaders() - Method in class org.apache.commons.fileupload.FileUploadBase.FileItemIteratorImpl.FileItemStreamImpl
-
Returns the file item headers.
- getHeaders(String) - Method in class org.apache.commons.fileupload.util.FileItemHeadersImpl
-
- getInputStream() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns an InputStream
that can be
used to retrieve the contents of the file.
- getInputStream() - Method in interface org.apache.commons.fileupload.FileItem
-
Returns an InputStream
that can be
used to retrieve the contents of the file.
- getInputStream() - Method in class org.apache.commons.fileupload.portlet.PortletRequestContext
-
Retrieve the input stream for the request.
- getInputStream() - Method in interface org.apache.commons.fileupload.RequestContext
-
Retrieve the input stream for the request.
- getInputStream() - Method in class org.apache.commons.fileupload.servlet.ServletRequestContext
-
Retrieve the input stream for the request.
- getItemIterator(RequestContext) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Processes an
RFC 1867
compliant
multipart/form-data
stream.
- getItemIterator(ActionRequest) - Method in class org.apache.commons.fileupload.portlet.PortletFileUpload
-
Processes an
RFC 1867
compliant
multipart/form-data
stream.
- getItemIterator(HttpServletRequest) - Method in class org.apache.commons.fileupload.servlet.ServletFileUpload
-
Processes an
RFC 1867
compliant
multipart/form-data
stream.
- getName() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns the original filename in the client's filesystem.
- getName() - Method in interface org.apache.commons.fileupload.FileItem
-
Returns the original filename in the client's filesystem, as provided by
the browser (or other client software).
- getName() - Method in interface org.apache.commons.fileupload.FileItemStream
-
Returns the original filename in the client's filesystem, as provided by
the browser (or other client software).
- getName() - Method in class org.apache.commons.fileupload.FileUploadBase.FileItemIteratorImpl.FileItemStreamImpl
-
Returns the items file name.
- getOutputStream() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns an OutputStream
that can
be used for storing the contents of the file.
- getOutputStream() - Method in interface org.apache.commons.fileupload.FileItem
-
Returns an OutputStream
that can
be used for storing the contents of the file.
- getParsedHeaders(String) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Parses the header-part
and returns as key/value
pairs.
- getPermittedSize() - Method in exception org.apache.commons.fileupload.FileUploadBase.SizeException
-
Retrieves the permitted size of the request.
- getProgressListener() - Method in class org.apache.commons.fileupload.FileUploadBase
-
Returns the progress listener.
- getRepository() - Method in class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
Returns the directory used to temporarily store files that are larger
than the configured size threshold.
- getRepositoryPath() - Method in class org.apache.commons.fileupload.DiskFileUpload
-
- getSize() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns the size of the file.
- getSize() - Method in interface org.apache.commons.fileupload.FileItem
-
Returns the size of the file item.
- getSizeMax() - Method in class org.apache.commons.fileupload.FileUploadBase
-
- getSizeThreshold() - Method in class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
Returns the size threshold beyond which files are written directly to
disk.
- getSizeThreshold() - Method in class org.apache.commons.fileupload.DiskFileUpload
-
- getStoreLocation() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns the File
object for the FileItem
's
data's temporary location on the disk.
- getString(String) - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns the contents of the file as a String, using the specified
encoding.
- getString() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns the contents of the file as a String, using the default
character encoding.
- getString(String) - Method in interface org.apache.commons.fileupload.FileItem
-
Returns the contents of the file item as a String, using the specified
encoding.
- getString() - Method in interface org.apache.commons.fileupload.FileItem
-
Returns the contents of the file item as a String, using the default
character encoding.
- getTempFile() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Creates and returns a File
representing a uniquely
named temporary file in the configured repository path.
- getToken(boolean) - Method in class org.apache.commons.fileupload.ParameterParser
-
A helper method to process the parsed token.
- getUniqueId() - Static method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Returns an identifier that is unique within the class loader used to
load this class, but does not have random-like apearance.
- i1 - Variable in class org.apache.commons.fileupload.ParameterParser
-
Start of a token.
- i2 - Variable in class org.apache.commons.fileupload.ParameterParser
-
End of a token.
- IllegalBoundaryException() - Constructor for exception org.apache.commons.fileupload.MultipartStream.IllegalBoundaryException
-
Constructs an IllegalBoundaryException
with no
detail message.
- IllegalBoundaryException(String) - Constructor for exception org.apache.commons.fileupload.MultipartStream.IllegalBoundaryException
-
Constructs an IllegalBoundaryException
with
the specified detail message.
- input - Variable in class org.apache.commons.fileupload.MultipartStream
-
The input stream from which data is read.
- InvalidContentTypeException() - Constructor for exception org.apache.commons.fileupload.FileUploadBase.InvalidContentTypeException
-
Constructs a InvalidContentTypeException
with no
detail message.
- InvalidContentTypeException(String) - Constructor for exception org.apache.commons.fileupload.FileUploadBase.InvalidContentTypeException
-
Constructs an InvalidContentTypeException
with
the specified detail message.
- IOFileUploadException(String, IOException) - Constructor for exception org.apache.commons.fileupload.FileUploadBase.IOFileUploadException
-
Creates a new instance with the given cause.
- isClosed() - Method in class org.apache.commons.fileupload.MultipartStream.ItemInputStream
-
Returns, whether the stream is closed.
- isClosed() - Method in interface org.apache.commons.fileupload.util.Closeable
-
Returns, whether the object is already closed.
- isClosed() - Method in class org.apache.commons.fileupload.util.LimitedInputStream
-
Returns, whether this stream is already closed.
- isFormField - Variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
Whether or not this item is a simple form field.
- isFormField() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Determines whether or not a FileItem
instance represents
a simple form field.
- isFormField() - Method in interface org.apache.commons.fileupload.FileItem
-
Determines whether or not a FileItem
instance represents
a simple form field.
- isFormField() - Method in interface org.apache.commons.fileupload.FileItemStream
-
Determines whether or not a FileItem
instance represents
a simple form field.
- isFormField() - Method in class org.apache.commons.fileupload.FileUploadBase.FileItemIteratorImpl.FileItemStreamImpl
-
Returns, whether this is a form field.
- isInMemory() - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Provides a hint as to whether or not the file contents will be read
from memory.
- isInMemory() - Method in interface org.apache.commons.fileupload.FileItem
-
Provides a hint as to whether or not the file contents will be read
from memory.
- isLowerCaseNames() - Method in class org.apache.commons.fileupload.ParameterParser
-
Returns true if parameter names are to be converted to lower
case when name/value pairs are parsed.
- isMultipartContent(RequestContext) - Static method in class org.apache.commons.fileupload.FileUploadBase
-
Utility method that determines whether the request contains multipart
content.
- isMultipartContent(HttpServletRequest) - Static method in class org.apache.commons.fileupload.FileUploadBase
-
- isMultipartContent(ActionRequest) - Static method in class org.apache.commons.fileupload.portlet.PortletFileUpload
-
Utility method that determines whether the request contains multipart
content.
- isMultipartContent(HttpServletRequest) - Static method in class org.apache.commons.fileupload.servlet.ServletFileUpload
-
Utility method that determines whether the request contains multipart
content.
- isOneOf(char, char[]) - Method in class org.apache.commons.fileupload.ParameterParser
-
Tests if the given character is present in the array of characters.
- ItemInputStream() - Constructor for class org.apache.commons.fileupload.MultipartStream.ItemInputStream
-
Creates a new instance.
- items - Variable in class org.apache.commons.fileupload.MultipartStream.ProgressNotifier
-
Number of items, which have been read so far.
- ItemSkippedException() - Constructor for exception org.apache.commons.fileupload.FileItemStream.ItemSkippedException
-
- itemValid - Variable in class org.apache.commons.fileupload.FileUploadBase.FileItemIteratorImpl
-
Whether the current item may still be read.
- pad - Variable in class org.apache.commons.fileupload.MultipartStream.ItemInputStream
-
The number of bytes, which must be hold, because
they might be a part of the boundary.
- ParameterParser - Class in org.apache.commons.fileupload
-
A simple parser intended to parse sequences of name/value pairs.
- ParameterParser() - Constructor for class org.apache.commons.fileupload.ParameterParser
-
Default ParameterParser constructor.
- parse(String, char[]) - Method in class org.apache.commons.fileupload.ParameterParser
-
Extracts a map of name/value pairs from the given string.
- parse(String, char) - Method in class org.apache.commons.fileupload.ParameterParser
-
Extracts a map of name/value pairs from the given string.
- parse(char[], char) - Method in class org.apache.commons.fileupload.ParameterParser
-
Extracts a map of name/value pairs from the given array of
characters.
- parse(char[], int, int, char) - Method in class org.apache.commons.fileupload.ParameterParser
-
Extracts a map of name/value pairs from the given array of
characters.
- parseEndOfLine(String, int) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Skips bytes until the end of the current line.
- parseHeaderLine(FileItemHeadersImpl, String) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Reads the next header line.
- parseHeaders(String) - Method in class org.apache.commons.fileupload.FileUploadBase
-
- parseQuotedToken(char[]) - Method in class org.apache.commons.fileupload.ParameterParser
-
Parses out a token until any of the given terminators
is encountered outside the quotation marks.
- parseRequest(HttpServletRequest, int, long, String) - Method in class org.apache.commons.fileupload.DiskFileUpload
-
- parseRequest(HttpServletRequest) - Method in class org.apache.commons.fileupload.FileUploadBase
-
- parseRequest(ActionRequest) - Method in class org.apache.commons.fileupload.portlet.PortletFileUpload
-
Processes an
RFC 1867
compliant
multipart/form-data
stream.
- parseRequest(HttpServletRequest) - Method in class org.apache.commons.fileupload.servlet.ServletFileUpload
-
Processes an
RFC 1867
compliant
multipart/form-data
stream.
- parseToken(char[]) - Method in class org.apache.commons.fileupload.ParameterParser
-
Parses out a token until any of the given terminators
is encountered.
- permitted - Variable in exception org.apache.commons.fileupload.FileUploadBase.SizeException
-
The maximum permitted size of the request.
- PortletFileUpload - Class in org.apache.commons.fileupload.portlet
-
High level API for processing file uploads.
- PortletFileUpload() - Constructor for class org.apache.commons.fileupload.portlet.PortletFileUpload
-
Constructs an uninitialised instance of this class.
- PortletFileUpload(FileItemFactory) - Constructor for class org.apache.commons.fileupload.portlet.PortletFileUpload
-
Constructs an instance of this class which uses the supplied factory to
create FileItem
instances.
- PortletRequestContext - Class in org.apache.commons.fileupload.portlet
-
Provides access to the request information needed for a request made to
a portlet.
- PortletRequestContext(ActionRequest) - Constructor for class org.apache.commons.fileupload.portlet.PortletRequestContext
-
Construct a context for this request.
- pos - Variable in class org.apache.commons.fileupload.MultipartStream.ItemInputStream
-
The current offset in the buffer.
- pos - Variable in class org.apache.commons.fileupload.ParameterParser
-
Current position in the string.
- printStackTrace(PrintStream) - Method in exception org.apache.commons.fileupload.FileUploadException
-
Prints this throwable and its backtrace to the specified print stream.
- printStackTrace(PrintWriter) - Method in exception org.apache.commons.fileupload.FileUploadException
-
Prints this throwable and its backtrace to the specified
print writer.
- ProgressListener - Interface in org.apache.commons.fileupload
-
The
ProgressListener
may be used to display a progress bar
or do stuff like that.
- ProgressNotifier(ProgressListener, long) - Constructor for class org.apache.commons.fileupload.MultipartStream.ProgressNotifier
-
Creates a new instance with the given listener
and content length.
- raiseError(long, long) - Method in class org.apache.commons.fileupload.util.LimitedInputStream
-
Called to indicate, that the input streams limit has
been exceeded.
- read() - Method in class org.apache.commons.fileupload.MultipartStream.ItemInputStream
-
Returns the next byte in the stream.
- read(byte[], int, int) - Method in class org.apache.commons.fileupload.MultipartStream.ItemInputStream
-
Reads bytes into the given buffer.
- read() - Method in class org.apache.commons.fileupload.util.LimitedInputStream
-
Reads the next byte of data from this input stream.
- read(byte[], int, int) - Method in class org.apache.commons.fileupload.util.LimitedInputStream
-
Reads up to len
bytes of data from this input stream
into an array of bytes.
- readBodyData(OutputStream) - Method in class org.apache.commons.fileupload.MultipartStream
-
Reads body-data
from the current
encapsulation
and writes its contents into the
output Stream
.
- readBoundary() - Method in class org.apache.commons.fileupload.MultipartStream
-
Skips a boundary
token, and checks whether more
encapsulations
are contained in the stream.
- readByte() - Method in class org.apache.commons.fileupload.MultipartStream
-
Reads a byte from the buffer
, and refills it as
necessary.
- readHeaders() - Method in class org.apache.commons.fileupload.MultipartStream
-
Reads the header-part
of the current
encapsulation
.
- readObject(ObjectInputStream) - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Reads the state of this object during deserialization.
- repository - Variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
The directory in which uploaded files will be stored, if stored on disk.
- repository - Variable in class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
The directory in which uploaded files will be stored, if stored on disk.
- request - Variable in class org.apache.commons.fileupload.portlet.PortletRequestContext
-
The request for which the context is being provided.
- request - Variable in class org.apache.commons.fileupload.servlet.ServletRequestContext
-
The request for which the context is being provided.
- RequestContext - Interface in org.apache.commons.fileupload
-
Abstracts access to the request information needed for file uploads.
- serialVersionUID - Static variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
The UID to use when serializing this instance.
- serialVersionUID - Static variable in exception org.apache.commons.fileupload.FileItemStream.ItemSkippedException
-
The exceptions serial version UID, which is being used
when serializing an exception instance.
- serialVersionUID - Static variable in exception org.apache.commons.fileupload.FileUploadBase.FileSizeLimitExceededException
-
The exceptions UID, for serializing an instance.
- serialVersionUID - Static variable in exception org.apache.commons.fileupload.FileUploadBase.FileUploadIOException
-
The exceptions UID, for serializing an instance.
- serialVersionUID - Static variable in exception org.apache.commons.fileupload.FileUploadBase.InvalidContentTypeException
-
The exceptions UID, for serializing an instance.
- serialVersionUID - Static variable in exception org.apache.commons.fileupload.FileUploadBase.IOFileUploadException
-
The exceptions UID, for serializing an instance.
- serialVersionUID - Static variable in exception org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException
-
The exceptions UID, for serializing an instance.
- serialVersionUID - Static variable in exception org.apache.commons.fileupload.FileUploadBase.UnknownSizeException
-
Deprecated.
The exceptions UID, for serializing an instance.
- serialVersionUID - Static variable in exception org.apache.commons.fileupload.FileUploadException
-
Serial version UID, being used, if the exception
is serialized.
- serialVersionUID - Static variable in class org.apache.commons.fileupload.util.FileItemHeadersImpl
-
- ServletFileUpload - Class in org.apache.commons.fileupload.servlet
-
High level API for processing file uploads.
- ServletFileUpload() - Constructor for class org.apache.commons.fileupload.servlet.ServletFileUpload
-
Constructs an uninitialised instance of this class.
- ServletFileUpload(FileItemFactory) - Constructor for class org.apache.commons.fileupload.servlet.ServletFileUpload
-
Constructs an instance of this class which uses the supplied factory to
create FileItem
instances.
- ServletRequestContext - Class in org.apache.commons.fileupload.servlet
-
Provides access to the request information needed for a request made to
an HTTP servlet.
- ServletRequestContext(HttpServletRequest) - Constructor for class org.apache.commons.fileupload.servlet.ServletRequestContext
-
Construct a context for this request.
- setBoundary(byte[]) - Method in class org.apache.commons.fileupload.MultipartStream
-
Changes the boundary token used for partitioning the stream.
- setFieldName(String) - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Sets the field name used to reference this file item.
- setFieldName(String) - Method in interface org.apache.commons.fileupload.FileItem
-
Sets the field name used to reference this file item.
- setFileCleaningTracker(FileCleaningTracker) - Method in class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
Returns the tracker, which is responsible for deleting temporary
files.
- setFileCleaningTracker(ServletContext, FileCleaningTracker) - Static method in class org.apache.commons.fileupload.servlet.FileCleanerCleanup
-
Sets the instance of FileCleaningTracker
, which is
associated with the given ServletContext
.
- setFileItemFactory(FileItemFactory) - Method in class org.apache.commons.fileupload.DiskFileUpload
-
- setFileItemFactory(FileItemFactory) - Method in class org.apache.commons.fileupload.FileUpload
-
Sets the factory class to use when creating file items.
- setFileItemFactory(FileItemFactory) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Sets the factory class to use when creating file items.
- setFileSizeMax(long) - Method in class org.apache.commons.fileupload.FileUploadBase
-
- setFormField(boolean) - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Specifies whether or not a FileItem
instance represents
a simple form field.
- setFormField(boolean) - Method in interface org.apache.commons.fileupload.FileItem
-
Specifies whether or not a FileItem
instance represents
a simple form field.
- setHeaderEncoding(String) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Specifies the character encoding to be used when reading the headers of
individual part.
- setHeaderEncoding(String) - Method in class org.apache.commons.fileupload.MultipartStream
-
Specifies the character encoding to be used when reading the headers of
individual parts.
- setHeaders(FileItemHeaders) - Method in class org.apache.commons.fileupload.disk.DiskFileItem
-
Sets the file item headers.
- setHeaders(FileItemHeaders) - Method in interface org.apache.commons.fileupload.FileItemHeadersSupport
-
Sets the headers read from within an item.
- setHeaders(FileItemHeaders) - Method in class org.apache.commons.fileupload.FileUploadBase.FileItemIteratorImpl.FileItemStreamImpl
-
Sets the file item headers.
- setLowerCaseNames(boolean) - Method in class org.apache.commons.fileupload.ParameterParser
-
Sets the flag if parameter names are to be converted to lower case when
name/value pairs are parsed.
- setProgressListener(ProgressListener) - Method in class org.apache.commons.fileupload.FileUploadBase
-
Sets the progress listener.
- setRepository(File) - Method in class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
Sets the directory used to temporarily store files that are larger
than the configured size threshold.
- setRepositoryPath(String) - Method in class org.apache.commons.fileupload.DiskFileUpload
-
- setSizeMax(long) - Method in class org.apache.commons.fileupload.FileUploadBase
-
- setSizeThreshold(int) - Method in class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
Sets the size threshold beyond which files are written directly to disk.
- setSizeThreshold(int) - Method in class org.apache.commons.fileupload.DiskFileUpload
-
- size - Variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
The size of the item, in bytes.
- SizeException(String, long, long) - Constructor for exception org.apache.commons.fileupload.FileUploadBase.SizeException
-
Creates a new instance.
- SizeLimitExceededException() - Constructor for exception org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException
-
- SizeLimitExceededException(String) - Constructor for exception org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException
-
- SizeLimitExceededException(String, long, long) - Constructor for exception org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException
-
Constructs a SizeExceededException
with
the specified detail message, and actual and permitted sizes.
- sizeMax - Variable in class org.apache.commons.fileupload.FileUploadBase
-
- sizeMax - Variable in class org.apache.commons.fileupload.util.LimitedInputStream
-
The maximum size of an item, in bytes.
- sizeThreshold - Variable in class org.apache.commons.fileupload.disk.DiskFileItem
-
The threshold above which uploads will be stored on disk.
- sizeThreshold - Variable in class org.apache.commons.fileupload.disk.DiskFileItemFactory
-
The threshold above which uploads will be stored on disk.
- skip(long) - Method in class org.apache.commons.fileupload.MultipartStream.ItemInputStream
-
Skips the given number of bytes.
- skipPreamble - Variable in class org.apache.commons.fileupload.FileUploadBase.FileItemIteratorImpl
-
Whether we are currently skipping the preamble.
- skipPreamble() - Method in class org.apache.commons.fileupload.MultipartStream
-
Finds the beginning of the first encapsulation
.
- stream - Variable in class org.apache.commons.fileupload.FileUploadBase.FileItemIteratorImpl.FileItemStreamImpl
-
The file items input stream.
- STREAM_TERMINATOR - Static variable in class org.apache.commons.fileupload.MultipartStream
-
A byte sequence that that follows a delimiter of the last
encapsulation in the stream (--
).
- Streams - Class in org.apache.commons.fileupload.util
-
Utility class for working with streams.
- Streams() - Constructor for class org.apache.commons.fileupload.util.Streams
-
Private constructor, to prevent instantiation.