Class FormatXMLSPISerializer
java.lang.Object
com.io7m.coffeepick.runtime.format.xml.FormatXMLSPISerializer
- All Implemented Interfaces:
SPISerializerType
,java.io.Closeable
,java.lang.AutoCloseable
public final class FormatXMLSPISerializer extends java.lang.Object implements SPISerializerType
An XML serializer.
-
Constructor Summary
Constructors Constructor Description FormatXMLSPISerializer(FormatXMLElements in_elements, java.io.OutputStream in_output)
Construct a serializer. -
Method Summary
Modifier and Type Method Description void
close()
void
serialize(RuntimeRepositoryDescription repository)
Serialize a repository.
-
Constructor Details
-
FormatXMLSPISerializer
Construct a serializer.- Parameters:
in_elements
- The element producerin_output
- The output stream
-
-
Method Details
-
serialize
Description copied from interface:SPISerializerType
Serialize a repository.- Specified by:
serialize
in interfaceSPISerializerType
- Parameters:
repository
- The repository- Throws:
java.io.IOException
- On I/O errors
-
close
public void close() throws java.io.IOException- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-