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