|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(org.w3c.dom.Document document)
Creates and returns a MimeTypes instance from the specified document. |
static MimeTypes |
create(java.io.InputStream inputStream)
Creates and returns a MimeTypes instance from the specified input stream. |
static MimeTypes |
create(java.lang.String filePath)
Creates and returns a MimeTypes instance from the specified file path, as interpreted by the class loader in getResource(). |
static MimeTypes |
create(java.net.URL url)
Creates and returns a MimeTypes instance from the resource at the location specified by the 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(org.w3c.dom.Document document) throws MimeTypeException
MimeTypeException
- if the type configuration is invalidpublic static MimeTypes create(java.io.InputStream inputStream) throws java.io.IOException, MimeTypeException
java.io.IOException
- if the stream can not be read
MimeTypeException
- if the type configuration is invalidpublic static MimeTypes create(java.net.URL url) throws java.io.IOException, MimeTypeException
java.io.IOException
- if the URL can not be accessed
MimeTypeException
- if the type configuration is invalidpublic static MimeTypes create(java.lang.String filePath) throws java.io.IOException, MimeTypeException
java.io.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 |