Enum Class SMB2CreateAction

java.lang.Object
java.lang.Enum<SMB2CreateAction>
com.hierynomus.mssmb2.SMB2CreateAction
All Implemented Interfaces:
EnumWithValue<SMB2CreateAction>, Serializable, Comparable<SMB2CreateAction>, Constable

public enum SMB2CreateAction extends Enum<SMB2CreateAction> implements EnumWithValue<SMB2CreateAction>
[MS-SMB2].pdf 2.2.14 SMB2 CREATE Response- CreateAction

The action taken in establishing the open. This field MUST contain one of the following values.

  • Enum Constant Details

    • FILE_SUPERSEDED

      public static final SMB2CreateAction FILE_SUPERSEDED
      An existing file was deleted and a new file was created in its place.
    • FILE_OPENED

      public static final SMB2CreateAction FILE_OPENED
      An existing file was opened.
    • FILE_CREATED

      public static final SMB2CreateAction FILE_CREATED
      A new file was created.
    • FILE_OVERWRITTEN

      public static final SMB2CreateAction FILE_OVERWRITTEN
      An existing file was overwritten
  • Field Details

    • value

      private long value
  • Constructor Details

    • SMB2CreateAction

      private SMB2CreateAction(long value)
  • Method Details

    • values

      public static SMB2CreateAction[] 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 SMB2CreateAction 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
    • getValue

      public long getValue()
      Specified by:
      getValue in interface EnumWithValue<SMB2CreateAction>