Interface FileFormat

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  FileFormat.Compression  
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default java.nio.charset.Charset charset()
      The charset used by the format
      java.lang.String defaultExtension()
      Return the default file extension for this format
      java.lang.String defaultMimeType()
      Return the default mimetype for this format
      java.util.stream.Stream<java.lang.String> extensions()
      Return all supported file format extensions
      java.util.stream.Stream<java.lang.String> mimeTypes()
      Return all supported mimetypes of this format
      java.lang.String name()
      The friendly format name
    • Method Detail

      • name

        @Nonnull
        java.lang.String name()
        The friendly format name
        Returns:
        the name
      • charset

        @Nonnull
        default java.nio.charset.Charset charset()
        The charset used by the format
        Returns:
        the charset
      • defaultExtension

        @Nonnull
        java.lang.String defaultExtension()
        Return the default file extension for this format
        Returns:
        the default file extension
      • defaultMimeType

        @Nonnull
        java.lang.String defaultMimeType()
        Return the default mimetype for this format
        Returns:
        the default mimetype
      • extensions

        @Nonnull
        java.util.stream.Stream<java.lang.String> extensions()
        Return all supported file format extensions
        Returns:
        the extensions
      • mimeTypes

        @Nonnull
        java.util.stream.Stream<java.lang.String> mimeTypes()
        Return all supported mimetypes of this format
        Returns:
        the mimetypes