|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsg.edu.nyp.drmPublisher.MIMEType
| Constructor Summary | |
MIMEType()
Create a new MIMEType object. |
|
| Method Summary | |
static java.lang.String |
generateRandomBoundaryString()
Generate a random MIME boundary String. |
java.lang.String |
getMIMEContentType(java.io.File file)
Return the MIME content type associated with the given file. |
java.lang.String |
getMIMEContentType(java.lang.String fileExtension)
Return the MIME content type associated with the given file extension. |
static boolean |
isValidBoundaryString(java.lang.String string)
A filter for RFC2046 compliants bondaryStrings. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MIMEType()
| Method Detail |
public java.lang.String getMIMEContentType(java.lang.String fileExtension)
fileExtension - the extension to be used for retrieving the file description
public java.lang.String getMIMEContentType(java.io.File file)
file - file whose type will be retrieved.
public static boolean isValidBoundaryString(java.lang.String string)
string - the string to test.
true if the string is a valid boudary string, else return false.public static java.lang.String generateRandomBoundaryString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||