Enum Utf8ByteHelper
- java.lang.Object
-
- java.lang.Enum<Utf8ByteHelper>
-
- com.perforce.p4java.impl.mapbased.rpc.sys.helper.Utf8ByteHelper
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Utf8ByteHelper>
public enum Utf8ByteHelper extends java.lang.Enum<Utf8ByteHelper>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
findBufferLimit(java.nio.ByteBuffer buffer)
static int
length(byte value)
static Utf8ByteHelper
parse(byte value)
static Utf8ByteHelper
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Utf8ByteHelper[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINGLE
public static final Utf8ByteHelper SINGLE
-
START
public static final Utf8ByteHelper START
-
MULTI
public static final Utf8ByteHelper MULTI
-
UNKNOWN
public static final Utf8ByteHelper UNKNOWN
-
-
Method Detail
-
values
public static Utf8ByteHelper[] 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:for (Utf8ByteHelper c : Utf8ByteHelper.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Utf8ByteHelper valueOf(java.lang.String name)
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 namejava.lang.NullPointerException
- if the argument is null
-
parse
public static Utf8ByteHelper parse(byte value)
-
length
public static int length(byte value)
-
findBufferLimit
public static int findBufferLimit(java.nio.ByteBuffer buffer) throws FileDecoderException
- Throws:
FileDecoderException
-
-