Package com.stardog.stark.io

# Interface FileFormat

All Known Subinterfaces:
  `QueryResultFormat`, `RDFFormat`, `RDFFormat.BinaryRDFFormat`

All Known Implementing Classes:
  `CompressedRDFFormat`, `FileFormatImpl`

public interface FileFormat

Represents the format of a file or stream, such as XML or JSON.

Since:
  1.0
Version:
  1.0
Author:
  Michael Grove

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Interface
  Description
  `static enum`
  `FileFormat.Compression`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `default Charset`
  `charset()`
  The charset used by the format
  `String`
  `defaultExtension()`
  Return the default file extension for this format
  `String`
  `defaultMimeType()`
  Return the default mimetype for this format
  `Stream<String>`
  `extensions()`
  Return all supported file format extensions
  `Stream<String>`
  `mimeTypes()`
  Return all supported mimetypes of this format
  `String`
  `name()`
  The friendly format name

- ## Method Details

  - ### name

    @Nonnull String name()
    The friendly format name
    Returns:
      the name

  - ### charset

    @Nonnull default Charset charset()
    The charset used by the format
    Returns:
      the charset

  - ### defaultExtension

    @Nonnull String defaultExtension()
    Return the default file extension for this format
    Returns:
      the default file extension

  - ### defaultMimeType

    @Nonnull String defaultMimeType()
    Return the default mimetype for this format
    Returns:
      the default mimetype

  - ### extensions

    @Nonnull Stream<String> extensions()
    Return all supported file format extensions
    Returns:
      the extensions

  - ### mimeTypes

    @Nonnull Stream<String> mimeTypes()
    Return all supported mimetypes of this format
    Returns:
      the mimetypes