OOP MimeParser Version 3.5
A B C G I L M N P S T

A

AcceptMime - Class in com.bentofw.util
Read the list of the acceptable mime-types from the resource file, and returns the Set object.

B

BinaryChecker - Interface in com.bentofw.util
Given the binary contents, check if the file is the specific mime-type or not.

C

checkBinary(byte[]) - Method in interface com.bentofw.util.BinaryChecker
Returns true if the binary contents can be considered to match the specific mime-type.
checkBinary(byte[]) - Method in class com.bentofw.util.CheckJpegLight
One of the implementation of .
checkBinary(byte[]) - Method in class com.bentofw.util.CheckPdfStrict
Returns true if the binary contents can be considered to match the PDF file.
checkBinary(byte[]) - Method in class com.bentofw.util.CheckPngLight
Returns true if the binary contents can be considered to match PNG file.
CheckBmpLight - Class in com.bentofw.util
One of the implementation of BinaryChecker.
CheckBmpLight() - Constructor for class com.bentofw.util.CheckBmpLight
 
CheckGifLight - Class in com.bentofw.util
One of the implementation of BinaryChecker.
CheckGifLight() - Constructor for class com.bentofw.util.CheckGifLight
 
CheckGifStrict - Class in com.bentofw.util
One of the implementation of BinaryChecker.
CheckGifStrict() - Constructor for class com.bentofw.util.CheckGifStrict
 
checkImageSize(byte[], String, String, int, int) - Method in class com.bentofw.util.ImageSizeChecker
Throws the exception if the width/height of the image file exceeds the maximum width/height.
CheckJpegLight - Class in com.bentofw.util
One of the implementation of BinaryChecker.
CheckJpegLight() - Constructor for class com.bentofw.util.CheckJpegLight
 
CheckJpegStrict - Class in com.bentofw.util
One of the implementation of BinaryChecker.
CheckJpegStrict() - Constructor for class com.bentofw.util.CheckJpegStrict
 
CheckPdfLight - Class in com.bentofw.util
One of the implementation of BinaryChecker.
CheckPdfLight() - Constructor for class com.bentofw.util.CheckPdfLight
 
CheckPdfStrict - Class in com.bentofw.util
One of the implementation of BinaryChecker.
CheckPdfStrict() - Constructor for class com.bentofw.util.CheckPdfStrict
Constructor.
CheckPngLight - Class in com.bentofw.util
One of the implementation of BinaryChecker.
CheckPngLight() - Constructor for class com.bentofw.util.CheckPngLight
Constructor.
CheckPngStrict - Class in com.bentofw.util
One of the implementation of BinaryChecker.
CheckPngStrict() - Constructor for class com.bentofw.util.CheckPngStrict
 
CheckPsLight - Class in com.bentofw.util
One of the implementation of BinaryChecker.
CheckPsLight() - Constructor for class com.bentofw.util.CheckPsLight
 
com.bentofw.mime - package com.bentofw.mime
This API consists of the utility classes for parsing HTTP POST request with multipart/form-data encoding.
com.bentofw.util - package com.bentofw.util
The classes and interfaces required for APIs by OOP-Research.
containsFile(String) - Method in class com.bentofw.mime.ParsedData
Returns true if the file is uploaded by the specified parameter name.
CorruptedBinaryContentsException - Exception in com.bentofw.util
Thrown if the binary contents of the uploaded file do not match to the intended pattern for the specified mime-type.
CorruptedBinaryContentsException(String, String) - Constructor for exception com.bentofw.util.CorruptedBinaryContentsException
Thrown if the binary contents of the uploaded file do not match to the intended pattern for the specified mime-type.

G

GenericLogger - Interface in com.bentofw.util
Interface for logging.
getAcceptMime() - Static method in class com.bentofw.util.AcceptMime
Read the list of the acceptable mime-types from the resource file, and returns the Set object.
getAcceptMimeTypes() - Method in exception com.bentofw.mime.InvalidContentTypeException
Return the list of the mime-types to be accepted.
getAcceptMimeTypesAsSet() - Method in exception com.bentofw.mime.InvalidContentTypeException
Return the Set object which includes the acceptable mime-types.
getAllFiles() - Method in class com.bentofw.mime.ParsedData
Returns the array of SavedFile instances.
getBinaryContents(String) - Method in class com.bentofw.mime.ParsedData
Returns the binary contents of the uploaded file.
getCurrentContentLength() - Method in exception com.bentofw.util.TooLargeBodyException
Return the Content-Length of the current request.
getCurrentFileSize() - Method in exception com.bentofw.mime.TooLargeFileException
Return the file size to be uploaded.
getCurrentMimeType() - Method in exception com.bentofw.mime.InvalidContentTypeException
Return the mime-type of the file to be uploaded.
getDefaultMaximumFileSize() - Method in class com.bentofw.mime.MimeParser
Returns the maximum file size which is specified in MimeParser.properties.
getFile(String) - Method in class com.bentofw.mime.ParsedData
Returns the instance of java.io.File for the file which is saved into the local file system.
getFile() - Method in class com.bentofw.mime.SavedFile
The instance of java.io.File for the file which is saved into the local file system.
getFileExtension(String) - Static method in class com.bentofw.util.MimeMapDic
Return the extension for the specified file name, such as png or txt.
getFileExtension4Mime(String) - Method in class com.bentofw.util.MimeMapDic
Return the file extension for the specified mime-type.
getFileKeys() - Method in class com.bentofw.mime.ParsedData
Returns the array of names for all the FILE INPUT in the FORM.
getFileName() - Method in exception com.bentofw.mime.InvalidContentTypeException
Return the file name to be uploaded.
getFileName() - Method in exception com.bentofw.mime.TooLargeFileException
Return the file name to be uploaded.
getFileName() - Method in exception com.bentofw.util.CorruptedBinaryContentsException
Return the file name of the uploaded file.
getFileName() - Method in exception com.bentofw.util.LargeImageException
Return the file name to be uploaded.
getFileRoot() - Method in class com.bentofw.mime.MimeParser
Returns the root directory where the uploaded file will be saved.
getHeight() - Method in exception com.bentofw.util.LargeImageException
Return the height of the uploaded image.
getInputStream(String) - Method in class com.bentofw.mime.ParsedData
Returns the InputStream to the binary contents of the uploaded file.
getInstance() - Static method in class com.bentofw.mime.MimeParser
Reads the property file and returns the instance of this class.
getInstance() - Static method in class com.bentofw.util.AcceptMime
 
getInstance() - Static method in class com.bentofw.util.ImageSizeChecker
Reads ImageSizeChecker.properties and returns the instance of this class.
getInstance() - Static method in class com.bentofw.util.MimeMapDic
Reads "WEB-INF/classes/mime.xml" and stores the mapping between the file extension and mime-type.
getKey() - Method in class com.bentofw.mime.SavedFile
The name of the FILE INPUT in your FORM.
getMaxContentLength() - Method in exception com.bentofw.util.TooLargeBodyException
Return the maximum Content-Length to be allowed.
getMaxFileSize() - Method in exception com.bentofw.mime.TooLargeFileException
Return the maximum file size to be allowed.
getMaximumHeight() - Method in class com.bentofw.mime.MimeParser
Return the maximum height to be allowed.
getMaximumHeight() - Method in exception com.bentofw.util.LargeImageException
Return the maximum height to be allowed.
getMaximumWidth() - Method in class com.bentofw.mime.MimeParser
Return the maximum width to be allowed.
getMaximumWidth() - Method in exception com.bentofw.util.LargeImageException
Return the maximum width to be allowed.
getMessage() - Method in exception com.bentofw.mime.InvalidContentTypeException
 
getMessage() - Method in exception com.bentofw.mime.TooLargeFileException
 
getMessage() - Method in exception com.bentofw.util.CorruptedBinaryContentsException
 
getMessage() - Method in exception com.bentofw.util.GetRequestException
 
getMessage() - Method in exception com.bentofw.util.LargeImageException
Return the error message.
getMessage() - Method in exception com.bentofw.util.NestedException
Returns the error message of original Throwable.
getMessage() - Method in exception com.bentofw.util.TooLargeBodyException
 
getMimeType(String) - Method in class com.bentofw.mime.ParsedData
Returns the mime-type for the uploaded file.
getMimeType() - Method in class com.bentofw.mime.SavedFile
Returns the mime-type for the uploaded file.
getMimeType() - Method in exception com.bentofw.util.CorruptedBinaryContentsException
Return the mime-type of the uploaded file.
getMimeType(String) - Method in class com.bentofw.util.MimeMapDic
Return the mime-type for the specified file name.
getOriginal() - Method in exception com.bentofw.util.NestedException
Returns the original Throwable.
getOriginalFileName(String) - Method in class com.bentofw.mime.ParsedData
Returns the original file name for the uploaded file.
getParameter(String) - Method in class com.bentofw.mime.ParsedData
Returns the value of the text parameter in your FORM, or null if the parameter does not exist.
getParameterNames() - Method in class com.bentofw.mime.ParsedData
Returns an Set of String objects, containing the names of the text parameters in your FORM.
getParameterValues(String) - Method in class com.bentofw.mime.ParsedData
Returns an array of String objects, each of which is the value of the specified text parameter.
GetRequestException - Exception in com.bentofw.util
Thrown by the Java API (such as MimeParser) which does not support "GET" request.
GetRequestException() - Constructor for exception com.bentofw.util.GetRequestException
 
getStringList(Set) - Static method in class com.bentofw.util.AcceptMime
Returns String object which concatenates the acceptable mime-types.
getTextContents(String) - Method in class com.bentofw.mime.ParsedData
Returns the text contents of the uploaded file.
getWidth() - Method in exception com.bentofw.util.LargeImageException
Return the width of the uploaded image.

I

ImageSizeChecker - Class in com.bentofw.util
Check width/height of the image file.
InvalidContentTypeException - Exception in com.bentofw.mime
When the Content-Type (mime type) of the uploaded file is invalid, this exception will be thrown by MimeParser.
isImageSizeChecked() - Method in class com.bentofw.mime.MimeParser
The true if the size of the image file (JPEG, GIF or PNG) will be checked.

L

LargeImageException - Exception in com.bentofw.util
Thrown if the uploaded file is larger than the specified maximum file.
LargeImageException(int, int, int, int, String) - Constructor for exception com.bentofw.util.LargeImageException
The constructor.
log(Level, String, String, String) - Method in interface com.bentofw.util.GenericLogger
Log a message, specifying source class and method.
log(Level, String, String, String, Throwable) - Method in interface com.bentofw.util.GenericLogger
Log a message, specifying source class and method, with associated Throwable information.
log(Level, String, String, String) - Method in class com.bentofw.util.Logger4Jcl
Log a message, specifying source class and method.
log(Level, String, String, String, Throwable) - Method in class com.bentofw.util.Logger4Jcl
Log a message, specifying source class and method, with associated Throwable information.
log(Level, String, String, String) - Method in class com.bentofw.util.Logger4Jdk
Log a message, specifying source class and method.
log(Level, String, String, String, Throwable) - Method in class com.bentofw.util.Logger4Jdk
Log a message, specifying source class and method, with associated Throwable information.
Logger4Jcl - Class in com.bentofw.util
GenericLogger implementation for Apache Common Logging API.
Logger4Jcl(Log) - Constructor for class com.bentofw.util.Logger4Jcl
Constructor that takes Log object in Apache Common Logging API.
Logger4Jdk - Class in com.bentofw.util
GenericLogger implementation for Java Logging API that is introduced in JDK 1.4 .
Logger4Jdk(Logger) - Constructor for class com.bentofw.util.Logger4Jdk
Constructor that takes Logger object in Java Logging API.

M

MimeMapDic - Class in com.bentofw.util
Resolve the mime-type from the file name.
MimeParser - Class in com.bentofw.mime
This class parses the HTTP POST request with multipart/form-data encoding.

N

NestedException - Exception in com.bentofw.util
The exception for the system error.
NestedException(Throwable) - Constructor for exception com.bentofw.util.NestedException
The custructor.
NoPropertyFileException - Exception in com.bentofw.util
This exception will be thrown when the required property file is not found.
NoPropertyFileException(String) - Constructor for exception com.bentofw.util.NoPropertyFileException
The custructor.

P

parse(HttpServletRequest, String, String, int) - Method in class com.bentofw.mime.MimeParser
Deprecated. 

parse(HttpServletRequest, String, String) - Method in class com.bentofw.mime.MimeParser
Deprecated. 

parse(HttpServletRequest, String, int) - Method in class com.bentofw.mime.MimeParser
Deprecated. 

parse(HttpServletRequest, String) - Method in class com.bentofw.mime.MimeParser
Deprecated. 

parseAndSave(HttpServletRequest, String, String, int) - Method in class com.bentofw.mime.MimeParser
Parses the HTTP POST request with multipart/form-data and returns the result as ParsedData instance.
parseAndSave(HttpServletRequest, String, String) - Method in class com.bentofw.mime.MimeParser
Parses the HTTP POST request with multipart/form-data and returns the result as ParsedData instance.
parseAndSave(HttpServletRequest, String, String, int, Set) - Method in class com.bentofw.mime.MimeParser
Parses the HTTP POST request with multipart/form-data and returns the result as ParsedData instance.
parseAndSave(HttpServletRequest, String, String, Set) - Method in class com.bentofw.mime.MimeParser
Parses the HTTP POST request with multipart/form-data and returns the result as ParsedData instance.
parseAndSave(HttpServletRequest, String, int) - Method in class com.bentofw.mime.MimeParser
Parses the HTTP POST request with multipart/form-data and returns the result as ParsedData instance.
parseAndSave(HttpServletRequest, String) - Method in class com.bentofw.mime.MimeParser
Parses the HTTP POST request with multipart/form-data and returns the result as ParsedData instance.
parseAndSave(HttpServletRequest, String, int, Set) - Method in class com.bentofw.mime.MimeParser
Parses the HTTP POST request with multipart/form-data and returns the result as ParsedData instance.
parseAndSave(HttpServletRequest, String, Set) - Method in class com.bentofw.mime.MimeParser
Parses the HTTP POST request with multipart/form-data and returns the result as ParsedData instance.
ParsedData - Class in com.bentofw.mime
Represents the HTTP POST request with multipart/form-data.
parseOnly(HttpServletRequest, String, int) - Method in class com.bentofw.mime.MimeParser
Parses the HTTP POST request with multipart/form-data and returns the result as ParsedData instance.
parseOnly(HttpServletRequest, String) - Method in class com.bentofw.mime.MimeParser
Parses the HTTP POST request with multipart/form-data and returns the result as ParsedData instance.
parseOnly(HttpServletRequest, String, int, Set) - Method in class com.bentofw.mime.MimeParser
Parses the HTTP POST request with multipart/form-data and returns the result as ParsedData instance.
parseOnly(HttpServletRequest, String, Set) - Method in class com.bentofw.mime.MimeParser
Parses the HTTP POST request with multipart/form-data and returns the result as ParsedData instance.
parseOnly(HttpServletRequest, int) - Method in class com.bentofw.mime.MimeParser
Parses the HTTP POST request with multipart/form-data and returns the result as ParsedData instance.
parseOnly(HttpServletRequest) - Method in class com.bentofw.mime.MimeParser
Parses the HTTP POST request with multipart/form-data and returns the result as ParsedData instance.
parseOnly(HttpServletRequest, int, Set) - Method in class com.bentofw.mime.MimeParser
Parses the HTTP POST request with multipart/form-data and returns the result as ParsedData instance.
parseOnly(HttpServletRequest, Set) - Method in class com.bentofw.mime.MimeParser
Parses the HTTP POST request with multipart/form-data and returns the result as ParsedData instance.
printStackTrace() - Method in exception com.bentofw.util.NestedException
Print this Throwable and its backtrace to the standard error stream.
printStackTrace(PrintStream) - Method in exception com.bentofw.util.NestedException
Print this Throwable and its backtrace to the specified PrintStream.
printStackTrace(PrintWriter) - Method in exception com.bentofw.util.NestedException
Print this Throwable and its backtrace to the specified PrintWriter.

S

saveBinaryContents(String, String) - Method in class com.bentofw.mime.ParsedData
Writes the binary contents of the uploaded file into the local file.
saveBinaryContents(String, File) - Method in class com.bentofw.mime.ParsedData
Writes the binary contents of the uploaded file into the local file.
SavedFile - Class in com.bentofw.mime
The instance of this class represents the name of FILE INPUT and the java.io.File object.
setDebug(boolean) - Method in class com.bentofw.mime.MimeParser
 
setDebug(boolean) - Method in class com.bentofw.util.AcceptMime
 
setDebug(boolean) - Method in class com.bentofw.util.ImageSizeChecker
 
setLogger(GenericLogger) - Method in class com.bentofw.mime.MimeParser
Set GenericLogger object to which the log messages will be written.
setLogger(GenericLogger) - Method in class com.bentofw.util.AcceptMime
Set GenericLogger object to which the log messages will be written.
setLogger(GenericLogger) - Method in class com.bentofw.util.ImageSizeChecker
Set GenericLogger object to which the log messages will be written.
shouldCheck(String) - Method in class com.bentofw.util.ImageSizeChecker
Returns true if the specified mime-type is the subject of this class.
SimpleException - Exception in com.bentofw.util
The exception for the logical error.
SimpleException(String) - Constructor for exception com.bentofw.util.SimpleException
The custructor.

T

TooLargeBodyException - Exception in com.bentofw.util
When the Content-Length of the request exceeds the specified max size, this exception is thrown.
TooLargeBodyException(int, int) - Constructor for exception com.bentofw.util.TooLargeBodyException
When the Content-Length of the request exceeds the specified max size, this exception is thrown.
TooLargeFileException - Exception in com.bentofw.mime
When the size of the uploaded file exceeds the specified max size, this exception is thrown by MimeParser.
toString() - Method in exception com.bentofw.util.GetRequestException
 

A B C G I L M N P S T
OOP MimeParser Version 3.5

ALL CONTENTS COPYRIGHT 2005, OOP-Research Corporation. All rights reserved.
Any questions and comments are welcome to OOP-Research Corporation.