Class FileChannel.MapMode

java.lang.Object
java.nio.channels.FileChannel.MapMode
Enclosing class:
FileChannel

public static class FileChannel.MapMode
extends Object
MapMode defines file mapping mode constants.
  • Field Details

    • PRIVATE

      public static final FileChannel.MapMode PRIVATE
      Private mapping mode (equivalent to copy on write).
    • READ_ONLY

      public static final FileChannel.MapMode READ_ONLY
      Read-only mapping mode.
    • READ_WRITE

      public static final FileChannel.MapMode READ_WRITE
      Read-write mapping mode.
  • Method Details

    • toString

      public String toString()
      Returns a string version of the mapping mode.
      Overrides:
      toString in class Object
      Returns:
      this map mode as string.