public class TXTRecord extends Record
| Constructor and Description |
|---|
TXTRecord(Name name,
int dclass,
long ttl,
List<String> strings)
Creates a TXT Record from the given data
|
TXTRecord(Name name,
int dclass,
long ttl,
String string)
Creates a TXT Record from the given data
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getStrings()
Returns the text strings
|
List<byte[]> |
getStringsAsByteArrays()
Returns the text strings
|
protected void |
rdataFromString(Tokenizer st,
Name origin)
Converts the text format of an RR to the internal format - must be overriden
|
protected void |
rrFromWire(DNSInput in)
Converts the type-specific RR to wire format - must be overridden
|
protected String |
rrToString()
converts to a String
|
protected void |
rrToWire(DNSOutput out,
Compression c,
boolean canonical)
Converts the type-specific RR to wire format - must be overriden
|
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, toString, toWire, toWireCanonical, unknownToString, withNameprotected List<byte[]> strings
public TXTRecord(Name name, int dclass, long ttl, List<String> strings)
strings - The text stringsIllegalArgumentException - One of the strings has invalid escapespublic TXTRecord(Name name, int dclass, long ttl, String string)
string - One text stringIllegalArgumentException - The string has invalid escapesprotected void rrFromWire(DNSInput in) throws IOException
RecordrrFromWire in class RecordIOExceptionprotected void rdataFromString(Tokenizer st, Name origin) throws IOException
RecordrdataFromString in class RecordIOExceptionprotected String rrToString()
rrToString in class Recordpublic List<String> getStrings()
public List<byte[]> getStringsAsByteArrays()
protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
RecordCopyright © 2021 dnsjava.org. All rights reserved.