Package | Description |
---|---|
gate |
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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
|
static MimeType |
DocumentFormat.getMimeTypeForString(String typeString)
Utility method to get a
MimeType given the type string. |
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
static DocumentFormat |
DocumentFormat.getDocumentFormat(MimeType mimeType)
Find the DocumentFormat implementation that deals with the given
MIME type.
|
void |
DocumentFormat.setMimeType(MimeType aMimeType)
Set the mime type
|
Copyright © 2023 GATE. All rights reserved.