com.io7m.r2.meshes.binary

## Class R2MBMappedReader

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

- All Implemented Interfaces:
    R2MBReaderType, Runnable

      public final class R2MBMappedReader
      extends Object
      implements R2MBReaderType

  A memory-mapped mesh reader.

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static R2MBReaderType` | `newMappedReaderForFileChannel(FileChannel in_chan, R2MeshParserInterleavedListenerType in_listener)` Create a new parser for the given file channel.
    `void` | `run()`

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

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

- - ### Method Detail

    - #### newMappedReaderForFileChannel

          public static R2MBReaderType newMappedReaderForFileChannel(FileChannel in_chan,
                                                                     R2MeshParserInterleavedListenerType in_listener)
                                                              throws IOException

      Create a new parser for the given file channel.
      Parameters:
        `in_chan` - The file channel
        `in_listener` - The parser listener
      Returns:
        A new parser
      Throws:
        `IOException` - On I/O errors

    - #### run

          public void run()

      Specified by:
        `run` in interface `Runnable`

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