public abstract class ResourceRecordEncoder extends Object implements RecordEncoder
Constructor and Description |
---|
ResourceRecordEncoder() |
Modifier and Type | Method and Description |
---|---|
void |
put(org.apache.mina.core.buffer.IoBuffer byteBuffer,
ResourceRecord record)
Encodes the
ResourceRecord into the IoBuffer . |
protected void |
putCharacterString(org.apache.mina.core.buffer.IoBuffer byteBuffer,
String characterString)
<character-string> is a single length octet followed by that number
of characters.
|
protected void |
putDataSize(org.apache.mina.core.buffer.IoBuffer byteBuffer,
int startPosition) |
protected void |
putDomainName(org.apache.mina.core.buffer.IoBuffer byteBuffer,
String domainName)
<domain-name> is a domain name represented as a series of labels, and
terminated by a label with zero length.
|
protected void |
putRecordClass(org.apache.mina.core.buffer.IoBuffer byteBuffer,
RecordClass recordClass) |
protected void |
putRecordType(org.apache.mina.core.buffer.IoBuffer byteBuffer,
RecordType recordType) |
protected void |
putResourceRecord(org.apache.mina.core.buffer.IoBuffer byteBuffer,
ResourceRecord record) |
protected abstract void |
putResourceRecordData(org.apache.mina.core.buffer.IoBuffer byteBuffer,
ResourceRecord record) |
public ResourceRecordEncoder()
public void put(org.apache.mina.core.buffer.IoBuffer byteBuffer, ResourceRecord record) throws IOException
RecordEncoder
ResourceRecord
into the IoBuffer
.put
in interface RecordEncoder
IOException
protected abstract void putResourceRecordData(org.apache.mina.core.buffer.IoBuffer byteBuffer, ResourceRecord record)
protected void putResourceRecord(org.apache.mina.core.buffer.IoBuffer byteBuffer, ResourceRecord record)
protected void putDataSize(org.apache.mina.core.buffer.IoBuffer byteBuffer, int startPosition)
protected void putDomainName(org.apache.mina.core.buffer.IoBuffer byteBuffer, String domainName)
byteBuffer
- the ByteBuffer to encode the domain name intodomainName
- the domain name to encodeprotected void putRecordType(org.apache.mina.core.buffer.IoBuffer byteBuffer, RecordType recordType)
protected void putRecordClass(org.apache.mina.core.buffer.IoBuffer byteBuffer, RecordClass recordClass)
protected void putCharacterString(org.apache.mina.core.buffer.IoBuffer byteBuffer, String characterString)
byteBuffer
- The byte buffer to encode the character string into.characterString
- the character string to encodeCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.