Skip to main content

Enum: Parser.Mode

Package: com.phoenix_int.aserver.util Class Hierarchy
All Implemented Interfaces:
  • java.io.Serializable, java.lang.Comparable<Parser.Mode>
Enclosing interface:
Declaration
File-access mode. Moved to type-safe enum from legacy integer constants.

Enum Constant Summary

Field Summary

Method Summary

Methods inherited from class java.lang.Enum

clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

Methods inherited from class java.lang.Object

getClass, notify, notifyAll, wait, wait, wait

Enum Constant Detail

RANDOM

BUFFERED

AUTOMATIC

Field Detail

FILE_SIZE_LIMIT

See Also:

Method Detail

values

Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
Returns:
  • an array containing the constants of this enum type, in the order they are declared

valueOf

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
  • java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
  • java.lang.NullPointerException - if the argument is null

getCode

Retrieve the legacy integer code assigned to this access mode Returns:
  • code

newLineStore

Throws:
  • java.io.IOException

newLineStore

Throws:
  • java.io.IOException

newLineStore

Create a new line store consistent with the file-access mode Parameters:
  • file -
Returns:
  • line store
Throws:
  • java.io.IOException

fromCode