public class ServerName
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.Object |
name |
|
protected short |
nameType |
Constructor | Description |
---|---|
ServerName(short nameType,
java.lang.Object name) |
Modifier and Type | Method | Description |
---|---|---|
void |
encode(java.io.OutputStream output) |
Encode this
ServerName to an OutputStream . |
java.lang.String |
getHostName() |
|
java.lang.Object |
getName() |
|
short |
getNameType() |
|
protected static boolean |
isCorrectType(short nameType,
java.lang.Object name) |
|
static ServerName |
parse(java.io.InputStream input) |
Parse a
ServerName from an InputStream . |
public short getNameType()
public java.lang.Object getName()
public java.lang.String getHostName()
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
protected static boolean isCorrectType(short nameType, java.lang.Object name)