net.sf.juoserver.protocol
Class ServerList
java.lang.Object
net.sf.juoserver.protocol.AbstractMessage
net.sf.juoserver.protocol.ServerList
- All Implemented Interfaces:
- Serializable, Message
public class ServerList
- extends AbstractMessage
- See Also:
- Serialized Form
CODE
public static final int CODE
- See Also:
- Constant Field Values
SERVER_NAME_SIZE
public static final int SERVER_NAME_SIZE
- See Also:
- Constant Field Values
UNKNOWN_BYTE
public static final byte UNKNOWN_BYTE
- See Also:
- Constant Field Values
ServerList
public ServerList(ServerInfo... servers)
getServers
public List<ServerInfo> getServers()
encode
public ByteBuffer encode()
- Description copied from interface:
Message
- Encodes this message into a byte array packet.
The array is wrapped in a byte buffer in order to let subclasses append
their contents.
- Specified by:
encode
in interface Message
- Overrides:
encode
in class AbstractMessage
- Returns:
- the byte array representation (a.k.a. packet) of this message
isCompressed
public boolean isCompressed()
- Description copied from class:
AbstractMessage
-
Default value is true.
- Specified by:
isCompressed
in interface Message
- Overrides:
isCompressed
in class AbstractMessage
- Returns:
true
if and only if this message should be compressed when sent by the server
hashCode
public int hashCode()
- Specified by:
hashCode
in class AbstractMessage
equals
public boolean equals(Object obj)
- Specified by:
equals
in class AbstractMessage
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2010-2012. All Rights Reserved.