Enum RandomAccessFileMode

java.lang.Object
java.lang.Enum<RandomAccessFileMode>
org.apache.commons.io.RandomAccessFileMode
All Implemented Interfaces:
Serializable, Comparable<RandomAccessFileMode>, java.lang.constant.Constable

public enum RandomAccessFileMode extends Enum<RandomAccessFileMode>
Access modes and factory methods for RandomAccessFile.
Since:
2.12.0
  • Enum Constant Details

    • READ_ONLY

      public static final RandomAccessFileMode READ_ONLY
      Mode "r" opens for reading only.
    • READ_WRITE

      public static final RandomAccessFileMode READ_WRITE
      Mode "rw" opens for reading and writing.
    • READ_WRITE_SYNC_ALL

      public static final RandomAccessFileMode READ_WRITE_SYNC_ALL
      Mode "rws" opens for reading and writing, as with "rw", and also require that every update to the file's content or metadata be written synchronously to the underlying storage device.
    • READ_WRITE_SYNC_CONTENT

      public static final RandomAccessFileMode READ_WRITE_SYNC_CONTENT
      Mode "rwd" open for reading and writing, as with "rw", and also require that every update to the file's content be written synchronously to the underlying storage device.
  • Method Details