public final class ServerName
extends java.lang.Object
Constructor and Description |
---|
ServerName(short nameType,
byte[] nameData) |
Modifier and Type | Method and Description |
---|---|
void |
encode(java.io.OutputStream output)
Encode this
ServerName to an OutputStream . |
byte[] |
getNameData() |
short |
getNameType() |
static ServerName |
parse(java.io.InputStream input)
Parse a
ServerName from an InputStream . |
public short getNameType()
public byte[] getNameData()
public void encode(java.io.OutputStream output) throws java.io.IOException
ServerName
to an OutputStream
.output
- the OutputStream
to encode to.java.io.IOException
public static ServerName parse(java.io.InputStream input) throws java.io.IOException
ServerName
from an InputStream
.input
- the InputStream
to parse from.ServerName
object.java.io.IOException