1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
5
<!-- Generated by javadoc on Sun Oct 10 17:41:04 EDT 2004 -->
7
HttpClient 2.0.2 API: Class HttpConstants
9
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
11
<BODY BGCOLOR="white">
13
<!-- ========== START OF NAVBAR ========== -->
14
<A NAME="navbar_top"><!-- --></A>
15
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
17
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
18
<A NAME="navbar_top_firstrow"><!-- --></A>
19
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
20
<TR ALIGN="center" VALIGN="top">
21
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
22
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
23
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
24
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/HttpConstants.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
25
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
26
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
27
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
28
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
32
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
38
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
39
<A HREF="../../../../org/apache/commons/httpclient/HttpConnection.html"><B>PREV CLASS</B></A>
40
<A HREF="../../../../org/apache/commons/httpclient/HttpMethodBase.html"><B>NEXT CLASS</B></A></FONT></TD>
41
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
42
<A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
43
<A HREF="HttpConstants.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
46
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
47
SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
48
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
49
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
52
<!-- =========== END OF NAVBAR =========== -->
55
<!-- ======== START OF CLASS DATA ======== -->
58
org.apache.commons.httpclient</FONT>
60
Class HttpConstants</H2>
62
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html">java.lang.Object</A>
64
+--<B>org.apache.commons.httpclient.HttpConstants</B>
68
<DT>public class <B>HttpConstants</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html">Object</A></DL>
71
HTTP content conversion routines.
74
<DT><B>Author: </B><DD>Oleg Kalnichevski, <a href="mailto:mbowler@GargoyleSoftware.com">Mike Bowler</a></DD>
79
<!-- ======== INNER CLASS SUMMARY ======== -->
82
<!-- =========== FIELD SUMMARY =========== -->
84
<A NAME="field_summary"><!-- --></A>
85
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
86
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
87
<TD COLSPAN=2><FONT SIZE="+2">
88
<B>Field Summary</B></FONT></TD>
90
<TR BGCOLOR="white" CLASS="TableRowColor">
91
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
92
<CODE>static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
93
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#DEFAULT_CONTENT_CHARSET">DEFAULT_CONTENT_CHARSET</A></B></CODE>
96
Default content encoding chatset</TD>
98
<TR BGCOLOR="white" CLASS="TableRowColor">
99
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
100
<CODE>static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
101
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#HTTP_ELEMENT_CHARSET">HTTP_ELEMENT_CHARSET</A></B></CODE>
104
Character set used to encode HTTP protocol elements</TD>
108
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
110
<A NAME="constructor_summary"><!-- --></A>
111
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
112
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
113
<TD COLSPAN=2><FONT SIZE="+2">
114
<B>Constructor Summary</B></FONT></TD>
116
<TR BGCOLOR="white" CLASS="TableRowColor">
117
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#HttpConstants()">HttpConstants</A></B>()</CODE>
120
</TD>
124
<!-- ========== METHOD SUMMARY =========== -->
126
<A NAME="method_summary"><!-- --></A>
127
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
128
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
129
<TD COLSPAN=2><FONT SIZE="+2">
130
<B>Method Summary</B></FONT></TD>
132
<TR BGCOLOR="white" CLASS="TableRowColor">
133
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
134
<CODE>static byte[]</CODE></FONT></TD>
135
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getAsciiBytes(java.lang.String)">getAsciiBytes</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> data)</CODE>
138
Converts the specified string to byte array of ASCII characters.</TD>
140
<TR BGCOLOR="white" CLASS="TableRowColor">
141
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
142
<CODE>static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
143
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getAsciiString(byte[])">getAsciiString</A></B>(byte[] data)</CODE>
146
Converts the byte array of ASCII characters to a string.</TD>
148
<TR BGCOLOR="white" CLASS="TableRowColor">
149
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
150
<CODE>static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
151
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getAsciiString(byte[], int, int)">getAsciiString</A></B>(byte[] data,
153
int length)</CODE>
156
Converts the byte array of ASCII characters to a string.</TD>
158
<TR BGCOLOR="white" CLASS="TableRowColor">
159
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
160
<CODE>static byte[]</CODE></FONT></TD>
161
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getBytes(java.lang.String)">getBytes</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> data)</CODE>
164
Converts the specified string to a byte array of HTTP element characters.</TD>
166
<TR BGCOLOR="white" CLASS="TableRowColor">
167
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168
<CODE>static byte[]</CODE></FONT></TD>
169
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getContentBytes(java.lang.String)">getContentBytes</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> data)</CODE>
172
Converts the specified string to a byte array of HTTP content characters
173
using default HTTP content encoding (ISO-8859-1) This method is to be
174
used when encoding content of HTTP request/response</TD>
176
<TR BGCOLOR="white" CLASS="TableRowColor">
177
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
178
<CODE>static byte[]</CODE></FONT></TD>
179
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getContentBytes(java.lang.String, java.lang.String)">getContentBytes</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> data,
180
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> charset)</CODE>
183
Converts the specified string to a byte array of HTTP content charachetrs
184
This method is to be used when encoding content of HTTP request/response
185
If the specified charset is not supported, default HTTP content encoding
186
(ISO-8859-1) is applied</TD>
188
<TR BGCOLOR="white" CLASS="TableRowColor">
189
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
190
<CODE>static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
191
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getContentString(byte[])">getContentString</A></B>(byte[] data)</CODE>
194
Converts the byte array of HTTP content characters to a string using
195
default HTTP content encoding (ISO-8859-1) This method is to be used when
196
decoding content of HTTP request/response</TD>
198
<TR BGCOLOR="white" CLASS="TableRowColor">
199
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
200
<CODE>static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
201
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getContentString(byte[], int, int)">getContentString</A></B>(byte[] data,
203
int length)</CODE>
206
Converts the byte array of HTTP content characters to a string using
207
default HTTP content encoding (ISO-8859-1) This method is to be used when
208
decoding content of HTTP request/response</TD>
210
<TR BGCOLOR="white" CLASS="TableRowColor">
211
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
212
<CODE>static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
213
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getContentString(byte[], int, int, java.lang.String)">getContentString</A></B>(byte[] data,
216
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> charset)</CODE>
219
Converts the byte array of HTTP content characters to a string This
220
method is to be used when decoding content of HTTP request/response If
221
the specified charset is not supported, default HTTP content encoding
222
(ISO-8859-1) is applied</TD>
224
<TR BGCOLOR="white" CLASS="TableRowColor">
225
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
226
<CODE>static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
227
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getContentString(byte[], java.lang.String)">getContentString</A></B>(byte[] data,
228
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> charset)</CODE>
231
Converts the byte array of HTTP content characters to a string This
232
method is to be used when decoding content of HTTP request/response If
233
the specified charset is not supported, default HTTP content encoding
234
(ISO-8859-1) is applied</TD>
236
<TR BGCOLOR="white" CLASS="TableRowColor">
237
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
238
<CODE>static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
239
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getString(byte[])">getString</A></B>(byte[] data)</CODE>
242
Converts the byte array of HTTP element characters to a string This
243
method is to be used when decoding content of HTTP elements (such as
244
response headers)</TD>
246
<TR BGCOLOR="white" CLASS="TableRowColor">
247
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
248
<CODE>static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
249
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getString(byte[], int, int)">getString</A></B>(byte[] data,
251
int length)</CODE>
254
Converts the byte array of HTTP element characters to a string This
255
method is to be used when decoding content of HTTP elements (such as
256
response headers)</TD>
259
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
260
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
261
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
262
<TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html">Object</A></B></TD>
264
<TR BGCOLOR="white" CLASS="TableRowColor">
265
<TD><CODE><A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#<clinit>()"><clinit></A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#clone()">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#toString()">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD>
271
<!-- ============ FIELD DETAIL =========== -->
273
<A NAME="field_detail"><!-- --></A>
274
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
275
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
276
<TD COLSPAN=1><FONT SIZE="+2">
277
<B>Field Detail</B></FONT></TD>
281
<A NAME="HTTP_ELEMENT_CHARSET"><!-- --></A><H3>
282
HTTP_ELEMENT_CHARSET</H3>
284
public static final <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>HTTP_ELEMENT_CHARSET</B></PRE>
286
<DD>Character set used to encode HTTP protocol elements</DL>
289
<A NAME="DEFAULT_CONTENT_CHARSET"><!-- --></A><H3>
290
DEFAULT_CONTENT_CHARSET</H3>
292
public static final <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>DEFAULT_CONTENT_CHARSET</B></PRE>
294
<DD>Default content encoding chatset</DL>
296
<!-- ========= CONSTRUCTOR DETAIL ======== -->
298
<A NAME="constructor_detail"><!-- --></A>
299
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
300
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
301
<TD COLSPAN=1><FONT SIZE="+2">
302
<B>Constructor Detail</B></FONT></TD>
306
<A NAME="HttpConstants()"><!-- --></A><H3>
309
public <B>HttpConstants</B>()</PRE>
313
<!-- ============ METHOD DETAIL ========== -->
315
<A NAME="method_detail"><!-- --></A>
316
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
317
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
318
<TD COLSPAN=1><FONT SIZE="+2">
319
<B>Method Detail</B></FONT></TD>
323
<A NAME="getBytes(java.lang.String)"><!-- --></A><H3>
326
public static byte[] <B>getBytes</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> data)</PRE>
328
<DD>Converts the specified string to a byte array of HTTP element characters.
329
This method is to be used when encoding content of HTTP elements (such as
330
request headers)<DD><DL>
331
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the string to be encoded<DT><B>Returns:</B><DD>The resulting byte array.</DL>
336
<A NAME="getString(byte[], int, int)"><!-- --></A><H3>
339
public static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>getString</B>(byte[] data,
341
int length)</PRE>
343
<DD>Converts the byte array of HTTP element characters to a string This
344
method is to be used when decoding content of HTTP elements (such as
345
response headers)<DD><DL>
346
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the byte array to be encoded<DD><CODE>offset</CODE> - the index of the first byte to encode<DD><CODE>length</CODE> - the number of bytes to encode<DT><B>Returns:</B><DD>The resulting string.</DL>
351
<A NAME="getString(byte[])"><!-- --></A><H3>
354
public static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>getString</B>(byte[] data)</PRE>
356
<DD>Converts the byte array of HTTP element characters to a string This
357
method is to be used when decoding content of HTTP elements (such as
358
response headers)<DD><DL>
359
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the byte array to be encoded<DT><B>Returns:</B><DD>The resulting string.</DL>
364
<A NAME="getContentBytes(java.lang.String, java.lang.String)"><!-- --></A><H3>
367
public static byte[] <B>getContentBytes</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> data,
368
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> charset)</PRE>
370
<DD>Converts the specified string to a byte array of HTTP content charachetrs
371
This method is to be used when encoding content of HTTP request/response
372
If the specified charset is not supported, default HTTP content encoding
373
(ISO-8859-1) is applied<DD><DL>
374
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the string to be encoded<DD><CODE>charset</CODE> - the desired character encoding<DT><B>Returns:</B><DD>The resulting byte array.</DL>
379
<A NAME="getContentString(byte[], int, int, java.lang.String)"><!-- --></A><H3>
380
getContentString</H3>
382
public static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>getContentString</B>(byte[] data,
385
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> charset)</PRE>
387
<DD>Converts the byte array of HTTP content characters to a string This
388
method is to be used when decoding content of HTTP request/response If
389
the specified charset is not supported, default HTTP content encoding
390
(ISO-8859-1) is applied<DD><DL>
391
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the byte array to be encoded<DD><CODE>offset</CODE> - the index of the first byte to encode<DD><CODE>length</CODE> - the number of bytes to encode<DD><CODE>charset</CODE> - the desired character encoding<DT><B>Returns:</B><DD>The result of the conversion.</DL>
396
<A NAME="getContentString(byte[], java.lang.String)"><!-- --></A><H3>
397
getContentString</H3>
399
public static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>getContentString</B>(byte[] data,
400
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> charset)</PRE>
402
<DD>Converts the byte array of HTTP content characters to a string This
403
method is to be used when decoding content of HTTP request/response If
404
the specified charset is not supported, default HTTP content encoding
405
(ISO-8859-1) is applied<DD><DL>
406
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the byte array to be encoded<DD><CODE>charset</CODE> - the desired character encoding<DT><B>Returns:</B><DD>The result of the conversion.</DL>
411
<A NAME="getContentBytes(java.lang.String)"><!-- --></A><H3>
414
public static byte[] <B>getContentBytes</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> data)</PRE>
416
<DD>Converts the specified string to a byte array of HTTP content characters
417
using default HTTP content encoding (ISO-8859-1) This method is to be
418
used when encoding content of HTTP request/response<DD><DL>
419
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the string to be encoded<DT><B>Returns:</B><DD>The byte array as above.</DL>
424
<A NAME="getContentString(byte[], int, int)"><!-- --></A><H3>
425
getContentString</H3>
427
public static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>getContentString</B>(byte[] data,
429
int length)</PRE>
431
<DD>Converts the byte array of HTTP content characters to a string using
432
default HTTP content encoding (ISO-8859-1) This method is to be used when
433
decoding content of HTTP request/response<DD><DL>
434
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the byte array to be encoded<DD><CODE>offset</CODE> - the index of the first byte to encode<DD><CODE>length</CODE> - the number of bytes to encode<DT><B>Returns:</B><DD>The string representation of the byte array.</DL>
439
<A NAME="getContentString(byte[])"><!-- --></A><H3>
440
getContentString</H3>
442
public static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>getContentString</B>(byte[] data)</PRE>
444
<DD>Converts the byte array of HTTP content characters to a string using
445
default HTTP content encoding (ISO-8859-1) This method is to be used when
446
decoding content of HTTP request/response<DD><DL>
447
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the byte array to be encoded<DT><B>Returns:</B><DD>The string representation of the byte array.</DL>
452
<A NAME="getAsciiBytes(java.lang.String)"><!-- --></A><H3>
455
public static byte[] <B>getAsciiBytes</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> data)</PRE>
457
<DD>Converts the specified string to byte array of ASCII characters.<DD><DL>
458
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the string to be encoded<DT><B>Returns:</B><DD>The string as a byte array.</DL>
463
<A NAME="getAsciiString(byte[], int, int)"><!-- --></A><H3>
466
public static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>getAsciiString</B>(byte[] data,
468
int length)</PRE>
470
<DD>Converts the byte array of ASCII characters to a string. This method is
471
to be used when decoding content of HTTP elements (such as response
473
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the byte array to be encoded<DD><CODE>offset</CODE> - the index of the first byte to encode<DD><CODE>length</CODE> - the number of bytes to encode<DT><B>Returns:</B><DD>The string representation of the byte array</DL>
478
<A NAME="getAsciiString(byte[])"><!-- --></A><H3>
481
public static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>getAsciiString</B>(byte[] data)</PRE>
483
<DD>Converts the byte array of ASCII characters to a string. This method is
484
to be used when decoding content of HTTP elements (such as response
486
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the byte array to be encoded<DT><B>Returns:</B><DD>The string representation of the byte array</DL>
489
<!-- ========= END OF CLASS DATA ========= -->
492
<!-- ========== START OF NAVBAR ========== -->
493
<A NAME="navbar_bottom"><!-- --></A>
494
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
496
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
497
<A NAME="navbar_bottom_firstrow"><!-- --></A>
498
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
499
<TR ALIGN="center" VALIGN="top">
500
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
501
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
502
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
503
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/HttpConstants.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
504
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
505
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
506
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
507
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
511
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
517
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
518
<A HREF="../../../../org/apache/commons/httpclient/HttpConnection.html"><B>PREV CLASS</B></A>
519
<A HREF="../../../../org/apache/commons/httpclient/HttpMethodBase.html"><B>NEXT CLASS</B></A></FONT></TD>
520
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
521
<A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
522
<A HREF="HttpConstants.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
525
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
526
SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
527
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
528
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
531
<!-- =========== END OF NAVBAR =========== -->
534
Copyright © 2001-2004 Apache Software Foundation. All Rights Reserved.