public class ServerName extends Object
Modifier and Type | Field and Description |
---|---|
protected Object |
name |
protected short |
nameType |
Constructor and Description |
---|
ServerName(short nameType,
Object name) |
Modifier and Type | Method and Description |
---|---|
void |
encode(OutputStream output)
Encode this
ServerName to an OutputStream . |
String |
getHostName() |
Object |
getName() |
short |
getNameType() |
protected static boolean |
isCorrectType(short nameType,
Object name) |
static ServerName |
parse(InputStream input)
Parse a
ServerName from an InputStream . |
protected short nameType
protected Object name
public ServerName(short nameType, Object name)
public short getNameType()
public Object getName()
public String getHostName()
public void encode(OutputStream output) throws IOException
ServerName
to an OutputStream
.output
- the OutputStream
to encode to.IOException
public static ServerName parse(InputStream input) throws IOException
ServerName
from an InputStream
.input
- the InputStream
to parse from.ServerName
object.IOException
protected static boolean isCorrectType(short nameType, Object name)