# Class CATypePackageSerializer

java.lang.Object
com.io7m.cardant.type_packages.parsers.internal.CATypePackageSerializer

All Implemented Interfaces:
  `com.io7m.anethum.api.SerializerType<CATypePackage>`, `CATypePackageSerializerType`, `Closeable`, `AutoCloseable`

public final class CATypePackageSerializer extends Object implements CATypePackageSerializerType
A type package serializer.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CATypePackageSerializer(OutputStream inStream)`
  A type package serializer.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `void`
  `execute(CATypePackage value)`

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

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

- ## Constructor Details

  - ### CATypePackageSerializer

    public CATypePackageSerializer(OutputStream inStream)
    A type package serializer.
    Parameters:
      `inStream` - The output stream

- ## Method Details

  - ### execute

    public void execute(CATypePackage value) throws com.io7m.anethum.api.SerializationException
    Specified by:
      `execute` in interface `com.io7m.anethum.api.SerializerType<CATypePackage>`
    Throws:
      `com.io7m.anethum.api.SerializationException`

  - ### close

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