public enum Status extends Enum<Status>
enum
describing the overall result of the wrap and
unwrap methods in an IEngine
implementation.Enum Constant and Description |
---|
BUFFER_OVERFLOW
An
IEngine implementation was not able to process the operation
because there are not enough bytes available in the destination buffer
to hold the result. |
BUFFER_UNDERFLOW
An
IEngine implementation was not able to unwrap the incoming data
because there were not enough source bytes available to make a complete
packet. |
CLOSED
The operation just closed this side of an
IEngine implementation, or
the operation could not be completed because it was already closed. |
OK
An
IEngine implementation completed the operation, and is available
to process similar calls. |
Modifier and Type | Method and Description |
---|---|
static Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Status BUFFER_OVERFLOW
IEngine
implementation was not able to process the operation
because there are not enough bytes available in the destination buffer
to hold the result.public static final Status BUFFER_UNDERFLOW
IEngine
implementation was not able to unwrap the incoming data
because there were not enough source bytes available to make a complete
packet.public static final Status CLOSED
IEngine
implementation, or
the operation could not be completed because it was already closed.public static Status[] values()
for (Status c : Status.values()) System.out.println(c);
public static Status 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 nullCopyright © 2017–2021 SNF4J.ORG. All rights reserved.