1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
<!-- Generated by javadoc (build 1.7.0) on Thu Jan 24 21:19:04 GMT-08:00 2008 -->
7
TXTRecord (dnsjava documentation)
10
<META NAME="date" CONTENT="2008-01-24">
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
14
<SCRIPT type="text/javascript">
15
function windowTitle()
17
if (location.href.indexOf('is-external=true') == -1) {
18
parent.document.title="TXTRecord (dnsjava documentation)";
27
<BODY BGCOLOR="white" onload="windowTitle();">
31
<!-- ========= START OF TOP NAVBAR ======= -->
32
<A NAME="navbar_top"><!-- --></A>
33
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37
<A NAME="navbar_top_firstrow"><!-- --></A>
38
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39
<TR ALIGN="center" VALIGN="top">
40
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
41
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
42
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
43
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
44
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
45
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
46
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
50
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
56
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57
<A HREF="../../../org/xbill/DNS/TTL.html" title="class in org.xbill.DNS"><B>PREV CLASS</B></A>
58
<A HREF="../../../org/xbill/DNS/Type.html" title="class in org.xbill.DNS"><B>NEXT CLASS</B></A></FONT></TD>
59
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60
<A HREF="../../../index.html?org/xbill/DNS/TXTRecord.html" target="_top"><B>FRAMES</B></A>
61
<A HREF="TXTRecord.html" target="_top"><B>NO FRAMES</B></A>
62
<SCRIPT type="text/javascript">
65
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
70
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
77
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
79
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
83
<A NAME="skip-navbar_top"></A>
84
<!-- ========= END OF TOP NAVBAR ========= -->
87
<!-- ======== START OF CLASS DATA ======== -->
94
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
95
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../org/xbill/DNS/Record.html" title="class in org.xbill.DNS">org.xbill.DNS.Record</A>
96
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.xbill.DNS.TXTRecord</B>
99
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</A></DD>
103
<DT><PRE>public class <B>TXTRecord</B><DT>extends <A HREF="../../../org/xbill/DNS/Record.html" title="class in org.xbill.DNS">Record</A></DL>
107
Text - stores text strings
112
<DT><B>Author:</B></DT>
113
<DD>Brian Wellington</DD>
118
<!-- =========== FIELD SUMMARY =========== -->
120
<A NAME="field_summary"><!-- --></A>
121
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
122
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
123
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
124
<B>Field Summary</B></FONT></TH>
126
<TR BGCOLOR="white" CLASS="TableRowColor">
127
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
128
<CODE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A></CODE></FONT></TD>
129
<TD><CODE><B><A HREF="../../../org/xbill/DNS/TXTRecord.html#strings">strings</A></B></CODE>
132
</TD>
135
<A NAME="fields_inherited_from_class_org.xbill.DNS.Record"><!-- --></A>
136
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
137
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
138
<TH ALIGN="left"><B>Fields inherited from class org.xbill.DNS.<A HREF="../../../org/xbill/DNS/Record.html" title="class in org.xbill.DNS">Record</A></B></TH>
140
<TR BGCOLOR="white" CLASS="TableRowColor">
141
<TD><CODE><A HREF="../../../org/xbill/DNS/Record.html#dclass">dclass</A>, <A HREF="../../../org/xbill/DNS/Record.html#name">name</A>, <A HREF="../../../org/xbill/DNS/Record.html#ttl">ttl</A>, <A HREF="../../../org/xbill/DNS/Record.html#type">type</A></CODE></TD>
145
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
147
<A NAME="constructor_summary"><!-- --></A>
148
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
149
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
150
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
151
<B>Constructor Summary</B></FONT></TH>
153
<TR BGCOLOR="white" CLASS="TableRowColor">
154
<TD><CODE><B><A HREF="../../../org/xbill/DNS/TXTRecord.html#TXTRecord(org.xbill.DNS.Name, int, long, java.util.List)">TXTRecord</A></B>(<A HREF="../../../org/xbill/DNS/Name.html" title="class in org.xbill.DNS">Name</A> name,
157
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A> strings)</CODE>
160
Creates a TXT Record from the given data</TD>
162
<TR BGCOLOR="white" CLASS="TableRowColor">
163
<TD><CODE><B><A HREF="../../../org/xbill/DNS/TXTRecord.html#TXTRecord(org.xbill.DNS.Name, int, long, java.lang.String)">TXTRecord</A></B>(<A HREF="../../../org/xbill/DNS/Name.html" title="class in org.xbill.DNS">Name</A> name,
166
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> string)</CODE>
169
Creates a TXT Record from the given data</TD>
173
<!-- ========== METHOD SUMMARY =========== -->
175
<A NAME="method_summary"><!-- --></A>
176
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
177
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
178
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
179
<B>Method Summary</B></FONT></TH>
181
<TR BGCOLOR="white" CLASS="TableRowColor">
182
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
183
<CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A></CODE></FONT></TD>
184
<TD><CODE><B><A HREF="../../../org/xbill/DNS/TXTRecord.html#getStrings()">getStrings</A></B>()</CODE>
187
Returns the text strings</TD>
189
<TR BGCOLOR="white" CLASS="TableRowColor">
190
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
191
<CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A></CODE></FONT></TD>
192
<TD><CODE><B><A HREF="../../../org/xbill/DNS/TXTRecord.html#getStringsAsByteArrays()">getStringsAsByteArrays</A></B>()</CODE>
195
Returns the text strings</TD>
198
<A NAME="methods_inherited_from_class_org.xbill.DNS.Record"><!-- --></A>
199
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
200
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
201
<TH ALIGN="left"><B>Methods inherited from class org.xbill.DNS.<A HREF="../../../org/xbill/DNS/Record.html" title="class in org.xbill.DNS">Record</A></B></TH>
203
<TR BGCOLOR="white" CLASS="TableRowColor">
204
<TD><CODE><A HREF="../../../org/xbill/DNS/Record.html#byteArrayFromString(java.lang.String)">byteArrayFromString</A>, <A HREF="../../../org/xbill/DNS/Record.html#byteArrayToString(byte[], boolean)">byteArrayToString</A>, <A HREF="../../../org/xbill/DNS/Record.html#compareTo(java.lang.Object)">compareTo</A>, <A HREF="../../../org/xbill/DNS/Record.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../org/xbill/DNS/Record.html#fromString(org.xbill.DNS.Name, int, int, long, java.lang.String, org.xbill.DNS.Name)">fromString</A>, <A HREF="../../../org/xbill/DNS/Record.html#fromString(org.xbill.DNS.Name, int, int, long, org.xbill.DNS.Tokenizer, org.xbill.DNS.Name)">fromString</A>, <A HREF="../../../org/xbill/DNS/Record.html#fromWire(byte[], int)">fromWire</A>, <A HREF="../../../org/xbill/DNS/Record.html#getAdditionalName()">getAdditionalName</A>, <A HREF="../../../org/xbill/DNS/Record.html#getDClass()">getDClass</A>, <A HREF="../../../org/xbill/DNS/Record.html#getName()">getName</A>, <A HREF="../../../org/xbill/DNS/Record.html#getRRsetType()">getRRsetType</A>, <A HREF="../../../org/xbill/DNS/Record.html#getTTL()">getTTL</A>, <A HREF="../../../org/xbill/DNS/Record.html#getType()">getType</A>, <A HREF="../../../org/xbill/DNS/Record.html#hashCode()">hashCode</A>, <A HREF="../../../org/xbill/DNS/Record.html#newRecord(org.xbill.DNS.Name, int, int)">newRecord</A>, <A HREF="../../../org/xbill/DNS/Record.html#newRecord(org.xbill.DNS.Name, int, int, long)">newRecord</A>, <A HREF="../../../org/xbill/DNS/Record.html#newRecord(org.xbill.DNS.Name, int, int, long, byte[])">newRecord</A>, <A HREF="../../../org/xbill/DNS/Record.html#newRecord(org.xbill.DNS.Name, int, int, long, int, byte[])">newRecord</A>, <A HREF="../../../org/xbill/DNS/Record.html#rdataToString()">rdataToString</A>, <A HREF="../../../org/xbill/DNS/Record.html#rdataToWireCanonical()">rdataToWireCanonical</A>, <A HREF="../../../org/xbill/DNS/Record.html#sameRRset(org.xbill.DNS.Record)">sameRRset</A>, <A HREF="../../../org/xbill/DNS/Record.html#toString()">toString</A>, <A HREF="../../../org/xbill/DNS/Record.html#toWire(int)">toWire</A>, <A HREF="../../../org/xbill/DNS/Record.html#toWireCanonical()">toWireCanonical</A>, <A HREF="../../../org/xbill/DNS/Record.html#unknownToString(byte[])">unknownToString</A>, <A HREF="../../../org/xbill/DNS/Record.html#withName(org.xbill.DNS.Name)">withName</A></CODE></TD>
207
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
208
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
209
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
210
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
212
<TR BGCOLOR="white" CLASS="TableRowColor">
213
<TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
219
<!-- ============ FIELD DETAIL =========== -->
221
<A NAME="field_detail"><!-- --></A>
222
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
223
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
224
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
225
<B>Field Detail</B></FONT></TH>
229
<A NAME="strings"><!-- --></A><H3>
232
protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A> <B>strings</B></PRE>
238
<!-- ========= CONSTRUCTOR DETAIL ======== -->
240
<A NAME="constructor_detail"><!-- --></A>
241
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
242
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
243
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
244
<B>Constructor Detail</B></FONT></TH>
248
<A NAME="TXTRecord(org.xbill.DNS.Name, int, long, java.util.List)"><!-- --></A><H3>
251
public <B>TXTRecord</B>(<A HREF="../../../org/xbill/DNS/Name.html" title="class in org.xbill.DNS">Name</A> name,
254
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A> strings)</PRE>
256
<DD>Creates a TXT Record from the given data
259
<DT><B>Parameters:</B><DD><CODE>strings</CODE> - The text strings
261
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - One of the strings has invalid escapes</DL>
265
<A NAME="TXTRecord(org.xbill.DNS.Name, int, long, java.lang.String)"><!-- --></A><H3>
268
public <B>TXTRecord</B>(<A HREF="../../../org/xbill/DNS/Name.html" title="class in org.xbill.DNS">Name</A> name,
271
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> string)</PRE>
273
<DD>Creates a TXT Record from the given data
276
<DT><B>Parameters:</B><DD><CODE>string</CODE> - One text string
278
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - The string has invalid escapes</DL>
281
<!-- ============ METHOD DETAIL ========== -->
283
<A NAME="method_detail"><!-- --></A>
284
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
285
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
286
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
287
<B>Method Detail</B></FONT></TH>
291
<A NAME="getStrings()"><!-- --></A><H3>
294
public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A> <B>getStrings</B>()</PRE>
296
<DD>Returns the text strings
300
<DT><B>Returns:</B><DD>A list of Strings corresponding to the text strings.</DL>
305
<A NAME="getStringsAsByteArrays()"><!-- --></A><H3>
306
getStringsAsByteArrays</H3>
308
public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A> <B>getStringsAsByteArrays</B>()</PRE>
310
<DD>Returns the text strings
314
<DT><B>Returns:</B><DD>A list of byte arrays corresponding to the text strings.</DL>
317
<!-- ========= END OF CLASS DATA ========= -->
321
<!-- ======= START OF BOTTOM NAVBAR ====== -->
322
<A NAME="navbar_bottom"><!-- --></A>
323
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
324
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
326
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
327
<A NAME="navbar_bottom_firstrow"><!-- --></A>
328
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
329
<TR ALIGN="center" VALIGN="top">
330
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
331
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
332
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
333
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
334
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
335
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
336
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
340
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
346
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
347
<A HREF="../../../org/xbill/DNS/TTL.html" title="class in org.xbill.DNS"><B>PREV CLASS</B></A>
348
<A HREF="../../../org/xbill/DNS/Type.html" title="class in org.xbill.DNS"><B>NEXT CLASS</B></A></FONT></TD>
349
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
350
<A HREF="../../../index.html?org/xbill/DNS/TXTRecord.html" target="_top"><B>FRAMES</B></A>
351
<A HREF="TXTRecord.html" target="_top"><B>NO FRAMES</B></A>
352
<SCRIPT type="text/javascript">
355
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
360
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
367
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
368
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
369
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
370
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
373
<A NAME="skip-navbar_bottom"></A>
374
<!-- ======== END OF BOTTOM NAVBAR ======= -->