com.io7m.r2.meshes.binary

## Class R2MBMappedWriter

- java.lang.Object
- - com.io7m.r2.meshes.binary.R2MBMappedWriter

- All Implemented Interfaces:
    R2MBWriterType, Closeable, AutoCloseable

      public final class R2MBMappedWriter
      extends Object
      implements R2MBWriterType

  A memory-mapped implementation of the `R2MBWriterType` interface.

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `static R2MBWriterType` | `newWriterForPath(Path p, R2MeshTangentsType m)` Construct a new writer for the given file.
    `long` | `run()` Execute the write operation.

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

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

- - ### Method Detail

    - #### newWriterForPath

          public static R2MBWriterType newWriterForPath(Path p,
                                                        R2MeshTangentsType m)
                                                 throws IOException

      Construct a new writer for the given file.
      Parameters:
        `p` - The file
        `m` - The mesh
      Returns:
        A new writer
      Throws:
        `IOException` - On I/O errors

    - #### run

          public long run()
                   throws IOException

      Description copied from interface: `R2MBWriterType`
      Execute the write operation.
      Specified by:
        `run` in interface `R2MBWriterType`
      Returns:
        The number of bytes written
      Throws:
        `IOException` - On I/O errors

    - #### close

          public void close()
                     throws IOException

      Specified by:
        `close` in interface `Closeable`
      Specified by:
        `close` in interface `AutoCloseable`
      Throws:
        `IOException`

Copyright © 2016 <code@io7m.com> http://io7m.com