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