public static enum FieldSupport.Overflow extends Enum<FieldSupport.Overflow> implements FieldOption
Enum Constant and Description |
---|
ERROR
Error on overflow
|
IGNORE
Ignore overflow (same as TRUNCATE)
|
TRUNCATE
Truncate on overflow (same as IGNORE)
|
Modifier and Type | Method and Description |
---|---|
protected void |
check(byte[] b,
int len)
Check the overflow of the field
|
static FieldSupport.Overflow |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldSupport.Overflow[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldSupport.Overflow ERROR
public static final FieldSupport.Overflow TRUNCATE
public static final FieldSupport.Overflow IGNORE
public static FieldSupport.Overflow[] values()
for (FieldSupport.Overflow c : FieldSupport.Overflow.values()) System.out.println(c);
public static FieldSupport.Overflow valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected void check(byte[] b, int len)
b
- valuelen
- field lengthCopyright © 2008-2016 The Apache Software Foundation. All Rights Reserved.