public abstract class AbstractResourceRecord extends Object implements ResourceRecord, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected ResourceRecordClass |
classz |
protected String |
name |
protected char |
rawClassz |
protected char |
rawType |
protected byte[] |
rdata |
protected char |
rdLength |
protected long |
ttl |
protected ResourceRecordType |
type |
| Constructor and Description |
|---|
AbstractResourceRecord() |
| Modifier and Type | Method and Description |
|---|---|
javax.json.JsonObjectBuilder |
createJsonBuilder() |
void |
decode(NetworkData buffer) |
void |
encode(NetworkData buffer) |
int |
getRawClassz() |
int |
getRawType() |
protected byte[] |
readRdata(int rdlength,
NetworkData buffer) |
javax.json.JsonObject |
toJSon() |
String |
toZone(int maxLength) |
protected String name
protected char rawType
protected char rawClassz
protected ResourceRecordType type
protected ResourceRecordClass classz
protected long ttl
protected char rdLength
protected byte[] rdata
public void decode(NetworkData buffer)
decode in interface ResourceRecordpublic void encode(NetworkData buffer)
encode in interface ResourceRecordprotected byte[] readRdata(int rdlength,
NetworkData buffer)
public int getRawType()
public int getRawClassz()
public String toZone(int maxLength)
toZone in interface ResourceRecordpublic javax.json.JsonObjectBuilder createJsonBuilder()
public javax.json.JsonObject toJSon()
toJSon in interface ResourceRecordCopyright © 2019. All rights reserved.