Stay organized with collections
Save and categorize content based on your preferences.
MapMode
open class MapMode
A typesafe enumeration for file-mapping modes.
Summary
Public methods |
open String |
Returns a string describing this file-mapping mode.
|
Public methods
toString
open fun toString(): String
Returns a string describing this file-mapping mode.
Return |
String |
A descriptive string |
Properties
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# FileChannel.MapMode\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nMapMode\n=======\n\n```\nopen class MapMode\n```\n\n|---|--------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [java.nio.channels.FileChannel.MapMode](#) |\n\nA typesafe enumeration for file-mapping modes.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [toString](#toString())`()` Returns a string describing this file-mapping mode. |\n\n| Properties ||\n|----------------------------------|-------------------------------------------------------------------------------------------------------|\n| static [FileChannel.MapMode](#)! | [PRIVATE](#PRIVATE:java.nio.channels.FileChannel.MapMode) Mode for a private (copy-on-write) mapping. |\n| static [FileChannel.MapMode](#)! | [READ_ONLY](#READ_ONLY:java.nio.channels.FileChannel.MapMode) Mode for a read-only mapping. |\n| static [FileChannel.MapMode](#)! | [READ_WRITE](#READ_WRITE:java.nio.channels.FileChannel.MapMode) Mode for a read/write mapping. |\n\nPublic methods\n--------------\n\n### toString\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun toString(): String\n```\n\nReturns a string describing this file-mapping mode.\n\n| Return ||\n|----------------------------------------------------------------------------------|----------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | A descriptive string |\n\nProperties\n----------\n\n### PRIVATE\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val PRIVATE: FileChannel.MapMode!\n```\n\nMode for a private (copy-on-write) mapping. \n\n### READ_ONLY\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val READ_ONLY: FileChannel.MapMode!\n```\n\nMode for a read-only mapping. \n\n### READ_WRITE\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val READ_WRITE: FileChannel.MapMode!\n```\n\nMode for a read/write mapping."]]