Enum Class WriteMode

java.lang.Object
java.lang.Enum<WriteMode>
com.pervasive.datarush.io.WriteMode
All Implemented Interfaces:
Serializable, Comparable<WriteMode>, java.lang.constant.Constable

public enum WriteMode extends Enum<WriteMode>
Enumerates the possible file dispositions for writing. These indicate how to handle an attempt to write to an existing file.
  • Enum Constant Details

    • CREATE_NEW

      public static final WriteMode CREATE_NEW
      Writes to an existing file are an error.
    • OVERWRITE

      public static final WriteMode OVERWRITE
      Writes to an existing file will replace it.
    • APPEND

      public static final WriteMode APPEND
      Writes to an existing file will append to it.
  • Method Details

    • values

      public static WriteMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static WriteMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null