Uses of Class
gate.corpora.MimeType

Packages that use MimeType
gate This package contains the public interface to the GATE Java API. 
 

Uses of MimeType in gate
 

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
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
 

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