|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tika.mime.MimeTypesFactory
public class MimeTypesFactory
Creates instances of MimeTypes.
| Constructor Summary | |
|---|---|
MimeTypesFactory()
|
|
| Method Summary | |
|---|---|
static MimeTypes |
create()
Creates an empty instance; same as calling new MimeTypes(). |
static MimeTypes |
create(Document document)
Creates and returns a MimeTypes instance from the specified document. |
static MimeTypes |
create(InputStream... inputStreams)
Creates and returns a MimeTypes instance from the specified input stream. |
static MimeTypes |
create(InputStream stream)
|
static MimeTypes |
create(String filePath)
Creates and returns a MimeTypes instance from the specified file path, as interpreted by the class loader in getResource(). |
static MimeTypes |
create(String coreFilePath,
String extensionFilePath)
Creates and returns a MimeTypes instance. |
static MimeTypes |
create(URL... urls)
Creates and returns a MimeTypes instance from the resource at the location specified by the URL. |
static MimeTypes |
create(URL url)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MimeTypesFactory()
| Method Detail |
|---|
public static MimeTypes create()
public static MimeTypes create(Document document)
throws MimeTypeException
MimeTypeException - if the type configuration is invalid
public static MimeTypes create(InputStream... inputStreams)
throws IOException,
MimeTypeException
IOException - if the stream can not be read
MimeTypeException - if the type configuration is invalid
public static MimeTypes create(InputStream stream)
throws IOException,
MimeTypeException
IOException
MimeTypeExceptioncreate(InputStream...)
public static MimeTypes create(URL... urls)
throws IOException,
MimeTypeException
IOException - if the URL can not be accessed
MimeTypeException - if the type configuration is invalid
public static MimeTypes create(URL url)
throws IOException,
MimeTypeException
IOException
MimeTypeExceptioncreate(URL...)
public static MimeTypes create(String filePath)
throws IOException,
MimeTypeException
IOException - if the file can not be accessed
MimeTypeException - if the type configuration is invalid
public static MimeTypes create(String coreFilePath,
String extensionFilePath)
throws IOException,
MimeTypeException
coreFilePath - The main MimeTypes file to loadextensionFilePath - The name of extension MimeType files to load afterwards
IOException - if the file can not be accessed
MimeTypeException - if the type configuration is invalid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||