|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use MimeType | |
|---|---|
| gate | This package contains the public interface to the GATE Java API. |
| gate.corpora | |
| Uses of MimeType in gate |
|---|
| Fields in gate declared as MimeType | |
|---|---|
private MimeType |
DocumentFormat.mimeType
The MIME type of this format. |
| Fields in gate with type parameters of type MimeType | |
|---|---|
protected static Map<String,MimeType> |
DocumentFormat.magic2mimeTypeMap
Map of Set of magic numbers to MimeType. |
protected static Map<String,MimeType> |
DocumentFormat.mimeString2mimeTypeMap
Map of MimeType to DocumentFormat Class. |
protected static Map<String,MimeType> |
DocumentFormat.suffixes2mimeTypeMap
Map of Set of file suffixes to MimeType. |
| Methods in gate that return MimeType | |
|---|---|
protected static MimeType |
DocumentFormat.decideBetweenThreeMimeTypes(MimeType aMimeTypeFromWebServer,
MimeType aMimeTypeFromFileSuffix,
MimeType aMimeTypeFromMagicNumbers)
This method decides what mimeType is in majority |
protected static MimeType |
DocumentFormat.decideBetweenTwoMimeTypes(MimeType aMimeType,
MimeType anotherMimeType)
Decide between two mimeTypes. |
MimeType |
DocumentFormat.getMimeType()
Gets the mime Type |
private static MimeType |
DocumentFormat.getMimeType(String fileSufix)
Returns a MimeType having as input a fileSufix. |
private static MimeType |
DocumentFormat.getMimeType(URL url)
Returns a MymeType having as input a URL object. |
static MimeType |
DocumentFormat.getMimeTypeForString(String typeString)
Utility method to get a MimeType given the type string. |
private static MimeType |
DocumentFormat.getTypeFromContent(String aContent)
|
protected static MimeType |
DocumentFormat.guessTypeUsingMagicNumbers(InputStream aInputStream,
String anEncoding)
This method tries to guess the mime Type using some magic numbers. |
protected static MimeType |
DocumentFormat.runMagicNumbers(Reader aReader)
Performs magic over Gate Document |
| Methods in gate with parameters of type MimeType | |
|---|---|
protected static boolean |
DocumentFormat.areEqual(MimeType aMimeType,
MimeType anotherMimeType)
Tests if two MimeType objects are equal. |
protected static MimeType |
DocumentFormat.decideBetweenThreeMimeTypes(MimeType aMimeTypeFromWebServer,
MimeType aMimeTypeFromFileSuffix,
MimeType aMimeTypeFromMagicNumbers)
This method decides what mimeType is in majority |
protected static MimeType |
DocumentFormat.decideBetweenTwoMimeTypes(MimeType aMimeType,
MimeType anotherMimeType)
Decide between two mimeTypes. |
static DocumentFormat |
DocumentFormat.getDocumentFormat(Document aGateDocument,
MimeType mimeType)
Find a DocumentFormat implementation that deals with a particular MIME type, given that type. |
void |
DocumentFormat.setMimeType(MimeType aMimeType)
Set the mime type |
| Uses of MimeType in gate.corpora |
|---|
| Methods in gate.corpora with parameters of type MimeType | |
|---|---|
private void |
TikaFormat.assignMime(MimeType mime,
String... exts)
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||