# Class CLN2Writer

java.lang.Object
com.io7m.calino.vanilla.internal.CLN2Writer

All Implemented Interfaces:
  `CLNWriterType, AutoCloseable`

public final class CLN2Writer extends Object implements CLNWriterType
The main writer implementation.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CLN2Writer(com.io7m.jbssio.api.BSSWriterProviderType inWriters, CLNWriteRequest inRequest)`
  The main writer implementation.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `CLNFileWritableType`
  `execute()`
  Execute the writer.

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### CLN2Writer

    public CLN2Writer(com.io7m.jbssio.api.BSSWriterProviderType inWriters, CLNWriteRequest inRequest)
    The main writer implementation.
    Parameters:
      `inWriters` - A writer provider
      `inRequest` - The write request

- ## Method Details

  - ### execute

    public CLNFileWritableType execute() throws CLNException
    Description copied from interface: `CLNWriterType`
    Execute the writer.
    Specified by:
      `execute` in interface `CLNWriterType`
    Returns:
      A writable file
    Throws:
      `CLNException` - On errors

  - ### close

    public void close()
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in interface `CLNWriterType`