JavaTM 2 Platform
Standard Ed. 6

java.nio.channels
类 FileChannel.MapMode

java.lang.Object
  继承者 java.nio.channels.FileChannel.MapMode
正在封闭类:
FileChannel

public static class FileChannel.MapMode
extends Object

文件映射模式的类型安全的枚举。

从以下版本开始:
1.4
另请参见:
FileChannel.map(java.nio.channels.FileChannel.MapMode, long, long)

字段摘要
static FileChannel.MapMode PRIVATE
          专用(写入时拷贝)映射模式。
static FileChannel.MapMode READ_ONLY
          只读映射模式。
static FileChannel.MapMode READ_WRITE
          读取/写入映射模式。
 
方法摘要
 String toString()
          返回描述此文件映射模式的字符串。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

READ_ONLY

public static final FileChannel.MapMode READ_ONLY
只读映射模式。


READ_WRITE

public static final FileChannel.MapMode READ_WRITE
读取/写入映射模式。


PRIVATE

public static final FileChannel.MapMode PRIVATE
专用(写入时拷贝)映射模式。

方法详细信息

toString

public String toString()
返回描述此文件映射模式的字符串。

覆盖:
Object 中的 toString
返回:
一个描述性的字符串

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java 2 SDK SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策