Package com.io7m.coffeepick.runtime.format.xml

# 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.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### FormatXMLSPISerializer

    public FormatXMLSPISerializer​(FormatXMLElements in_elements, java.io.OutputStream in_output)
    Construct a serializer.
    Parameters:
      `in_elements` - The element producer
      `in_output` - The output stream

- ## Method Details

  - ### serialize

    public void serialize​(RuntimeRepositoryDescription repository) throws java.io.IOException
    Description copied from interface: `SPISerializerType`
    Serialize a repository.
    Specified by:
      `serialize` in interface `SPISerializerType`
    Parameters:
      `repository` - The repository
    Throws:
      `java.io.IOException` - On I/O errors

  - ### close

    public void close() throws java.io.IOException
    Specified by:
      `close` in interface `java.lang.AutoCloseable`
    Specified by:
      `close` in interface `java.io.Closeable`
    Throws:
      `java.io.IOException`