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 voidclose()voidserialize(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:SPISerializerTypeSerialize a repository.- Specified by:
serializein interfaceSPISerializerType- Parameters:
repository- The repository- Throws:
java.io.IOException- On I/O errors
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-