Interface CoffeePickSerializersType
- All Known Implementing Classes:
CoffeePickSerializers
,CoffeePickSerializersOSGi
public interface CoffeePickSerializersType
A provider of serializers.
-
Method Summary
Modifier and Type Method Description CoffeePickSerializerType
createSerializer(FormatDescription format, FormatVersion version, java.io.OutputStream output)
Create a new serializer.java.util.Optional<FormatDescription>
findFormat(java.net.URI format)
Find the format with the given name.java.util.SortedSet<FormatVersion>
findSupportedVersions(FormatDescription format)
-
Method Details
-
findSupportedVersions
- Parameters:
format
- The output format- Returns:
- The supported versions of the given format, if any
-
findFormat
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.IOExceptionCreate a new serializer.- Parameters:
format
- The output formatversion
- The output format versionoutput
- The output stream- Returns:
- A new serializer
- Throws:
java.io.IOException
- On I/O errors
-