Interface CoffeePickSerializersType

All Known Implementing Classes:
CoffeePickSerializers, CoffeePickSerializersOSGi

public interface CoffeePickSerializersType
A provider of serializers.
  • Method Details

    • findSupportedVersions

      java.util.SortedSet<FormatVersion> findSupportedVersions​(FormatDescription format)
      Parameters:
      format - The output format
      Returns:
      The supported versions of the given format, if any
    • findFormat

      java.util.Optional<FormatDescription> findFormat​(java.net.URI format)
      Find the format with the given name.
      Parameters:
      format - The format name
      Returns:
      The format description if one exists
    • createSerializer

      CoffeePickSerializerType createSerializer​(FormatDescription format, FormatVersion version, java.io.OutputStream output) throws java.io.IOException
      Create a new serializer.
      Parameters:
      format - The output format
      version - The output format version
      output - The output stream
      Returns:
      A new serializer
      Throws:
      java.io.IOException - On I/O errors