|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for file type detection
Method Summary | |
java.lang.String |
getContentType(java.io.InputStream fileIn)
Get content type for the input stream. |
boolean |
isCSS(java.lang.String contentType)
Returns true if file with the passed content type is a css file |
boolean |
isHtml(java.lang.String contentType)
Returns true if file with the passed content type is a html file |
boolean |
isImage(java.lang.String contentType)
Returns true if file with the passed content type is a image file |
Method Detail |
public java.lang.String getContentType(java.io.InputStream fileIn) throws java.io.IOException
fileIn
- file to upload
java.io.IOException
public boolean isCSS(java.lang.String contentType)
contentType
- Content type returned by getContentType(fileIn)public boolean isImage(java.lang.String contentType)
contentType
- Content type returned by getContentType(fileIn)public boolean isHtml(java.lang.String contentType)
contentType
- Content type returned by getContentType(fileIn)
|
Copyright © ObjectPlanet Inc. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |