Packages

o

io.archivesunleashed.matchbox

DetectMimeTypeTika

object DetectMimeTypeTika

Detect MIME type using Apache Tika.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DetectMimeTypeTika
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. val allMimeTypes: MimeTypes
  2. def apply(content: Array[Byte]): String

    Detect MIME type from an input string.

    Detect MIME type from an input string.

    content

    a byte array of content for which to detect the MimeType

    returns

    MIME type (e.g. "text/html" or "application/xml") or "N/A".

  3. val detector: DefaultDetector
  4. def getExtension(mimeType: String): String

    Return the best guess at a file extension from a MIME type string

    Return the best guess at a file extension from a MIME type string

    mimeType

    string representation of the MimeType

    returns

    file extension (e.g. ".jpg" for "image/jpeg").

  5. def getExtensions(mimeType: String): List[String]

    Return the list of all known file extensions for a MIME type string

    Return the list of all known file extensions for a MIME type string

    mimeType

    string representation of the MimeType

    returns

    list of file extensions (e.g. ".jpg" for "image/jpeg").

  6. val parser: AutoDetectParser
  7. val tika: Tika