public static class

FileChannel.MapMode

extends Object
java.lang.Object
   ↳java.nio.channels.FileChannel.MapMode

Class Overview

MapMode defines file mapping mode constants.

Summary

Constants
FileChannel.MapModePRIVATEPrivate mapping mode (equivalent to copy on write).
FileChannel.MapModeREAD_ONLYRead-only mapping mode.
FileChannel.MapModeREAD_WRITERead-write mapping mode.
Public Methods
String toString()
Returns a string version of the mapping mode.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final FileChannel.MapMode PRIVATE

Since: API Level 1

Private mapping mode (equivalent to copy on write).

public static final FileChannel.MapMode READ_ONLY

Since: API Level 1

Read-only mapping mode.

public static final FileChannel.MapMode READ_WRITE

Since: API Level 1

Read-write mapping mode.

Public Methods

public String toString ()

Since: API Level 1

Returns a string version of the mapping mode.

Returns
  • this map mode as string.