Serializable
, Comparable<WebSocket.MessagePart>
public static enum WebSocket.MessagePart extends Enum<WebSocket.MessagePart>
WebSocket.Listener
in cases where a partial
message may be received.Enum Constant | Description |
---|---|
FIRST |
The first part of a message in a sequence.
|
LAST |
The last part of a message in a sequence.
|
PART |
A middle part of a message in a sequence.
|
WHOLE |
A whole message consisting of a single part.
|
Modifier and Type | Method | Description |
---|---|---|
static WebSocket.MessagePart |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static WebSocket.MessagePart[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebSocket.MessagePart FIRST
public static final WebSocket.MessagePart LAST
public static final WebSocket.MessagePart PART
public static final WebSocket.MessagePart WHOLE
public static WebSocket.MessagePart[] values()
for (WebSocket.MessagePart c : WebSocket.MessagePart.values()) System.out.println(c);
public static WebSocket.MessagePart 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 null Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-10-04-161205.jjg.dev.8159855.tools-spi