|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.util.MetadataExtractor
public class MetadataExtractor
| Method Summary | |
|---|---|
String |
detectMimeType(File file)
Detects the media type of the given file. |
MetaData |
extractMetadata(File file)
|
MetaData |
extractMetadata(String fileName)
Return Metadata of a document. |
static MetadataExtractor |
getInstance()
Gets the singleton instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MetadataExtractor getInstance()
public MetaData extractMetadata(String fileName)
fileName -
public MetaData extractMetadata(File file)
public String detectMimeType(File file)
throws IOException
file - the file
IOException - if the file can not be read
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||