~s-friedemann/tomdroid/sshfs

« back to all changes in this revision

Viewing changes to lib/commons-codec-1.4/apidocs/org/apache/commons/codec/net/URLCodec.html

  • Committer: Guilherme Salgado
  • Date: 2010-08-31 21:44:24 UTC
  • mfrom: (185.1.51 sync-ui)
  • mto: (185.1.54 sync-ui)
  • mto: This revision was merged to the branch mainline in revision 186.
  • Revision ID: salgado@canonical.com-20100831214424-06b64zz707lwpmcl
mergeĀ lp:~tomdroid-developers/sync-ui

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
 
<!--NewPage-->
3
 
<HTML>
4
 
<HEAD>
5
 
<!-- Generated by javadoc (build 1.6.0_07) on Thu Aug 06 17:42:38 BST 2009 -->
6
 
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
7
 
<TITLE>
8
 
URLCodec (Commons Codec 1.4 API)
9
 
</TITLE>
10
 
 
11
 
<META NAME="date" CONTENT="2009-08-06">
12
 
 
13
 
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
14
 
 
15
 
<SCRIPT type="text/javascript">
16
 
function windowTitle()
17
 
{
18
 
    if (location.href.indexOf('is-external=true') == -1) {
19
 
        parent.document.title="URLCodec (Commons Codec 1.4 API)";
20
 
    }
21
 
}
22
 
</SCRIPT>
23
 
<NOSCRIPT>
24
 
</NOSCRIPT>
25
 
 
26
 
</HEAD>
27
 
 
28
 
<BODY BGCOLOR="white" onload="windowTitle();">
29
 
<HR>
30
 
 
31
 
 
32
 
<!-- ========= START OF TOP NAVBAR ======= -->
33
 
<A NAME="navbar_top"><!-- --></A>
34
 
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
35
 
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36
 
<TR>
37
 
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
38
 
<A NAME="navbar_top_firstrow"><!-- --></A>
39
 
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
40
 
  <TR ALIGN="center" VALIGN="top">
41
 
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
42
 
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
43
 
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
44
 
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/URLCodec.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
45
 
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
46
 
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
47
 
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
48
 
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
49
 
  </TR>
50
 
</TABLE>
51
 
</TD>
52
 
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
53
 
</EM>
54
 
</TD>
55
 
</TR>
56
 
 
57
 
<TR>
58
 
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
59
 
&nbsp;<A HREF="../../../../../org/apache/commons/codec/net/QuotedPrintableCodec.html" title="class in org.apache.commons.codec.net"><B>PREV CLASS</B></A>&nbsp;
60
 
&nbsp;NEXT CLASS</FONT></TD>
61
 
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
62
 
  <A HREF="../../../../../index.html?org/apache/commons/codec/net/URLCodec.html" target="_top"><B>FRAMES</B></A>  &nbsp;
63
 
&nbsp;<A HREF="URLCodec.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
64
 
&nbsp;<SCRIPT type="text/javascript">
65
 
  <!--
66
 
  if(window==top) {
67
 
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
68
 
  }
69
 
  //-->
70
 
</SCRIPT>
71
 
<NOSCRIPT>
72
 
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
73
 
</NOSCRIPT>
74
 
 
75
 
 
76
 
</FONT></TD>
77
 
</TR>
78
 
<TR>
79
 
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80
 
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
81
 
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
82
 
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
83
 
</TR>
84
 
</TABLE>
85
 
<A NAME="skip-navbar_top"></A>
86
 
<!-- ========= END OF TOP NAVBAR ========= -->
87
 
 
88
 
<HR>
89
 
<!-- ======== START OF CLASS DATA ======== -->
90
 
<H2>
91
 
<FONT SIZE="-1">
92
 
org.apache.commons.codec.net</FONT>
93
 
<BR>
94
 
Class URLCodec</H2>
95
 
<PRE>
96
 
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
97
 
  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.commons.codec.net.URLCodec</B>
98
 
</PRE>
99
 
<DL>
100
 
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/commons/codec/BinaryDecoder.html" title="interface in org.apache.commons.codec">BinaryDecoder</A>, <A HREF="../../../../../org/apache/commons/codec/BinaryEncoder.html" title="interface in org.apache.commons.codec">BinaryEncoder</A>, <A HREF="../../../../../org/apache/commons/codec/Decoder.html" title="interface in org.apache.commons.codec">Decoder</A>, <A HREF="../../../../../org/apache/commons/codec/Encoder.html" title="interface in org.apache.commons.codec">Encoder</A>, <A HREF="../../../../../org/apache/commons/codec/StringDecoder.html" title="interface in org.apache.commons.codec">StringDecoder</A>, <A HREF="../../../../../org/apache/commons/codec/StringEncoder.html" title="interface in org.apache.commons.codec">StringEncoder</A></DD>
101
 
</DL>
102
 
<HR>
103
 
<DL>
104
 
<DT><PRE>public class <A HREF="../../../../../src-html/org/apache/commons/codec/net/URLCodec.html#line.53"><B>URLCodec</B></A><DT>extends <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../../org/apache/commons/codec/BinaryEncoder.html" title="interface in org.apache.commons.codec">BinaryEncoder</A>, <A HREF="../../../../../org/apache/commons/codec/BinaryDecoder.html" title="interface in org.apache.commons.codec">BinaryDecoder</A>, <A HREF="../../../../../org/apache/commons/codec/StringEncoder.html" title="interface in org.apache.commons.codec">StringEncoder</A>, <A HREF="../../../../../org/apache/commons/codec/StringDecoder.html" title="interface in org.apache.commons.codec">StringDecoder</A></DL>
105
 
</PRE>
106
 
 
107
 
<P>
108
 
<p>Implements the 'www-form-urlencoded' encoding scheme, 
109
 
 also misleadingly known as URL encoding.</p>
110
 
  
111
 
 <p>For more detailed information please refer to 
112
 
 <a href="http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4.1">
113
 
 Chapter 17.13.4 'Form content types'</a> of the 
114
 
 <a href="http://www.w3.org/TR/html4/">HTML 4.01 Specification<a></p>
115
 
 
116
 
 <p> 
117
 
 This codec is meant to be a replacement for standard Java classes
118
 
 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLEncoder.html?is-external=true" title="class or interface in java.net"><CODE>URLEncoder</CODE></A> and <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLDecoder.html?is-external=true" title="class or interface in java.net"><CODE>URLDecoder</CODE></A> 
119
 
 on older Java platforms, as these classes in Java versions below 
120
 
 1.4 rely on the platform's default charset encoding.
121
 
 </p>
122
 
<P>
123
 
 
124
 
<P>
125
 
<DL>
126
 
<DT><B>Since:</B></DT>
127
 
  <DD>1.2</DD>
128
 
<DT><B>Version:</B></DT>
129
 
  <DD>$Id: URLCodec.java 798416 2009-07-28 06:35:58Z ggregory $</DD>
130
 
<DT><B>Author:</B></DT>
131
 
  <DD>Apache Software Foundation</DD>
132
 
</DL>
133
 
<HR>
134
 
 
135
 
<P>
136
 
<!-- =========== FIELD SUMMARY =========== -->
137
 
 
138
 
<A NAME="field_summary"><!-- --></A>
139
 
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
140
 
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
141
 
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
142
 
<B>Field Summary</B></FONT></TH>
143
 
</TR>
144
 
<TR BGCOLOR="white" CLASS="TableRowColor">
145
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
146
 
<CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
147
 
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/net/URLCodec.html#charset">charset</A></B></CODE>
148
 
 
149
 
<BR>
150
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The default charset used for string decoding and encoding.</TD>
151
 
</TR>
152
 
<TR BGCOLOR="white" CLASS="TableRowColor">
153
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
154
 
<CODE>protected static&nbsp;byte</CODE></FONT></TD>
155
 
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/net/URLCodec.html#ESCAPE_CHAR">ESCAPE_CHAR</A></B></CODE>
156
 
 
157
 
<BR>
158
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Consider this field final.</TD>
159
 
</TR>
160
 
<TR BGCOLOR="white" CLASS="TableRowColor">
161
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
162
 
<CODE>protected static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/BitSet.html?is-external=true" title="class or interface in java.util">BitSet</A></CODE></FONT></TD>
163
 
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/net/URLCodec.html#WWW_FORM_URL">WWW_FORM_URL</A></B></CODE>
164
 
 
165
 
<BR>
166
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BitSet of www-form-url safe characters.</TD>
167
 
</TR>
168
 
</TABLE>
169
 
&nbsp;
170
 
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
171
 
 
172
 
<A NAME="constructor_summary"><!-- --></A>
173
 
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
174
 
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
175
 
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
176
 
<B>Constructor Summary</B></FONT></TH>
177
 
</TR>
178
 
<TR BGCOLOR="white" CLASS="TableRowColor">
179
 
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/net/URLCodec.html#URLCodec()">URLCodec</A></B>()</CODE>
180
 
 
181
 
<BR>
182
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default constructor.</TD>
183
 
</TR>
184
 
<TR BGCOLOR="white" CLASS="TableRowColor">
185
 
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/net/URLCodec.html#URLCodec(java.lang.String)">URLCodec</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;charset)</CODE>
186
 
 
187
 
<BR>
188
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor which allows for the selection of a default charset</TD>
189
 
</TR>
190
 
</TABLE>
191
 
&nbsp;
192
 
<!-- ========== METHOD SUMMARY =========== -->
193
 
 
194
 
<A NAME="method_summary"><!-- --></A>
195
 
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
196
 
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
197
 
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
198
 
<B>Method Summary</B></FONT></TH>
199
 
</TR>
200
 
<TR BGCOLOR="white" CLASS="TableRowColor">
201
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
202
 
<CODE>&nbsp;byte[]</CODE></FONT></TD>
203
 
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/net/URLCodec.html#decode(byte[])">decode</A></B>(byte[]&nbsp;bytes)</CODE>
204
 
 
205
 
<BR>
206
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Decodes an array of URL safe 7-bit characters into an array of 
207
 
 original bytes.</TD>
208
 
</TR>
209
 
<TR BGCOLOR="white" CLASS="TableRowColor">
210
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
211
 
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
212
 
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/net/URLCodec.html#decode(java.lang.Object)">decode</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;pObject)</CODE>
213
 
 
214
 
<BR>
215
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Decodes a URL safe object into its original form.</TD>
216
 
</TR>
217
 
<TR BGCOLOR="white" CLASS="TableRowColor">
218
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
219
 
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
220
 
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/net/URLCodec.html#decode(java.lang.String)">decode</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;pString)</CODE>
221
 
 
222
 
<BR>
223
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Decodes a URL safe string into its original form using the default
224
 
 string charset.</TD>
225
 
</TR>
226
 
<TR BGCOLOR="white" CLASS="TableRowColor">
227
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
228
 
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
229
 
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/net/URLCodec.html#decode(java.lang.String, java.lang.String)">decode</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;pString,
230
 
             <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;charset)</CODE>
231
 
 
232
 
<BR>
233
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Decodes a URL safe string into its original form using the 
234
 
 specified encoding.</TD>
235
 
</TR>
236
 
<TR BGCOLOR="white" CLASS="TableRowColor">
237
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
238
 
<CODE>static&nbsp;byte[]</CODE></FONT></TD>
239
 
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/net/URLCodec.html#decodeUrl(byte[])">decodeUrl</A></B>(byte[]&nbsp;bytes)</CODE>
240
 
 
241
 
<BR>
242
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Decodes an array of URL safe 7-bit characters into an array of 
243
 
 original bytes.</TD>
244
 
</TR>
245
 
<TR BGCOLOR="white" CLASS="TableRowColor">
246
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
247
 
<CODE>&nbsp;byte[]</CODE></FONT></TD>
248
 
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/net/URLCodec.html#encode(byte[])">encode</A></B>(byte[]&nbsp;bytes)</CODE>
249
 
 
250
 
<BR>
251
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Encodes an array of bytes into an array of URL safe 7-bit 
252
 
 characters.</TD>
253
 
</TR>
254
 
<TR BGCOLOR="white" CLASS="TableRowColor">
255
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
256
 
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
257
 
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/net/URLCodec.html#encode(java.lang.Object)">encode</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;pObject)</CODE>
258
 
 
259
 
<BR>
260
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Encodes an object into its URL safe form.</TD>
261
 
</TR>
262
 
<TR BGCOLOR="white" CLASS="TableRowColor">
263
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
264
 
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
265
 
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/net/URLCodec.html#encode(java.lang.String)">encode</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;pString)</CODE>
266
 
 
267
 
<BR>
268
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Encodes a string into its URL safe form using the default string 
269
 
 charset.</TD>
270
 
</TR>
271
 
<TR BGCOLOR="white" CLASS="TableRowColor">
272
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
273
 
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
274
 
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/net/URLCodec.html#encode(java.lang.String, java.lang.String)">encode</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;pString,
275
 
             <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;charset)</CODE>
276
 
 
277
 
<BR>
278
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Encodes a string into its URL safe form using the specified string charset.</TD>
279
 
</TR>
280
 
<TR BGCOLOR="white" CLASS="TableRowColor">
281
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
282
 
<CODE>static&nbsp;byte[]</CODE></FONT></TD>
283
 
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/net/URLCodec.html#encodeUrl(java.util.BitSet, byte[])">encodeUrl</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/BitSet.html?is-external=true" title="class or interface in java.util">BitSet</A>&nbsp;urlsafe,
284
 
                   byte[]&nbsp;bytes)</CODE>
285
 
 
286
 
<BR>
287
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Encodes an array of bytes into an array of URL safe 7-bit characters.</TD>
288
 
</TR>
289
 
<TR BGCOLOR="white" CLASS="TableRowColor">
290
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
291
 
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
292
 
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/net/URLCodec.html#getDefaultCharset()">getDefaultCharset</A></B>()</CODE>
293
 
 
294
 
<BR>
295
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The default charset used for string decoding and encoding.</TD>
296
 
</TR>
297
 
<TR BGCOLOR="white" CLASS="TableRowColor">
298
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
299
 
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
300
 
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/net/URLCodec.html#getEncoding()">getEncoding</A></B>()</CODE>
301
 
 
302
 
<BR>
303
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use #getDefaultCharset()</I></TD>
304
 
</TR>
305
 
</TABLE>
306
 
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
307
 
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
308
 
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
309
 
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
310
 
</TR>
311
 
<TR BGCOLOR="white" CLASS="TableRowColor">
312
 
<TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/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.2/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.2/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.2/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.2/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.2/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.2/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.2/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.2/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.2/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.2/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
313
 
</TR>
314
 
</TABLE>
315
 
&nbsp;
316
 
<P>
317
 
 
318
 
<!-- ============ FIELD DETAIL =========== -->
319
 
 
320
 
<A NAME="field_detail"><!-- --></A>
321
 
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
322
 
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
323
 
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
324
 
<B>Field Detail</B></FONT></TH>
325
 
</TR>
326
 
</TABLE>
327
 
 
328
 
<A NAME="charset"><!-- --></A><H3>
329
 
charset</H3>
330
 
<PRE>
331
 
protected <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <A HREF="../../../../../src-html/org/apache/commons/codec/net/URLCodec.html#line.64"><B>charset</B></A></PRE>
332
 
<DL>
333
 
<DD>The default charset used for string decoding and encoding. Consider this field final. The next major release may
334
 
 break compatibility and make this field be final.
335
 
<P>
336
 
<DL>
337
 
</DL>
338
 
</DL>
339
 
<HR>
340
 
 
341
 
<A NAME="ESCAPE_CHAR"><!-- --></A><H3>
342
 
ESCAPE_CHAR</H3>
343
 
<PRE>
344
 
protected static byte <A HREF="../../../../../src-html/org/apache/commons/codec/net/URLCodec.html#line.69"><B>ESCAPE_CHAR</B></A></PRE>
345
 
<DL>
346
 
<DD>Consider this field final. The next major release may break compatibility and make this field be final.
347
 
<P>
348
 
<DL>
349
 
</DL>
350
 
</DL>
351
 
<HR>
352
 
 
353
 
<A NAME="WWW_FORM_URL"><!-- --></A><H3>
354
 
WWW_FORM_URL</H3>
355
 
<PRE>
356
 
protected static final <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/BitSet.html?is-external=true" title="class or interface in java.util">BitSet</A> <A HREF="../../../../../src-html/org/apache/commons/codec/net/URLCodec.html#line.73"><B>WWW_FORM_URL</B></A></PRE>
357
 
<DL>
358
 
<DD>BitSet of www-form-url safe characters.
359
 
<P>
360
 
<DL>
361
 
</DL>
362
 
</DL>
363
 
 
364
 
<!-- ========= CONSTRUCTOR DETAIL ======== -->
365
 
 
366
 
<A NAME="constructor_detail"><!-- --></A>
367
 
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
368
 
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
369
 
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
370
 
<B>Constructor Detail</B></FONT></TH>
371
 
</TR>
372
 
</TABLE>
373
 
 
374
 
<A NAME="URLCodec()"><!-- --></A><H3>
375
 
URLCodec</H3>
376
 
<PRE>
377
 
public <A HREF="../../../../../src-html/org/apache/commons/codec/net/URLCodec.html#line.101"><B>URLCodec</B></A>()</PRE>
378
 
<DL>
379
 
<DD>Default constructor.
380
 
<P>
381
 
</DL>
382
 
<HR>
383
 
 
384
 
<A NAME="URLCodec(java.lang.String)"><!-- --></A><H3>
385
 
URLCodec</H3>
386
 
<PRE>
387
 
public <A HREF="../../../../../src-html/org/apache/commons/codec/net/URLCodec.html#line.110"><B>URLCodec</B></A>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;charset)</PRE>
388
 
<DL>
389
 
<DD>Constructor which allows for the selection of a default charset
390
 
<P>
391
 
<DL>
392
 
<DT><B>Parameters:</B><DD><CODE>charset</CODE> - the default string charset to use.</DL>
393
 
</DL>
394
 
 
395
 
<!-- ============ METHOD DETAIL ========== -->
396
 
 
397
 
<A NAME="method_detail"><!-- --></A>
398
 
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
399
 
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
400
 
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
401
 
<B>Method Detail</B></FONT></TH>
402
 
</TR>
403
 
</TABLE>
404
 
 
405
 
<A NAME="encodeUrl(java.util.BitSet, byte[])"><!-- --></A><H3>
406
 
encodeUrl</H3>
407
 
<PRE>
408
 
public static final byte[] <A HREF="../../../../../src-html/org/apache/commons/codec/net/URLCodec.html#line.124"><B>encodeUrl</B></A>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/BitSet.html?is-external=true" title="class or interface in java.util">BitSet</A>&nbsp;urlsafe,
409
 
                                     byte[]&nbsp;bytes)</PRE>
410
 
<DL>
411
 
<DD>Encodes an array of bytes into an array of URL safe 7-bit characters. Unsafe characters are escaped.
412
 
<P>
413
 
<DD><DL>
414
 
</DL>
415
 
</DD>
416
 
<DD><DL>
417
 
<DT><B>Parameters:</B><DD><CODE>urlsafe</CODE> - bitset of characters deemed URL safe<DD><CODE>bytes</CODE> - array of bytes to convert to URL safe characters
418
 
<DT><B>Returns:</B><DD>array of bytes containing URL safe characters</DL>
419
 
</DD>
420
 
</DL>
421
 
<HR>
422
 
 
423
 
<A NAME="decodeUrl(byte[])"><!-- --></A><H3>
424
 
decodeUrl</H3>
425
 
<PRE>
426
 
public static final byte[] <A HREF="../../../../../src-html/org/apache/commons/codec/net/URLCodec.html#line.163"><B>decodeUrl</B></A>(byte[]&nbsp;bytes)
427
 
                              throws <A HREF="../../../../../org/apache/commons/codec/DecoderException.html" title="class in org.apache.commons.codec">DecoderException</A></PRE>
428
 
<DL>
429
 
<DD>Decodes an array of URL safe 7-bit characters into an array of 
430
 
 original bytes. Escaped characters are converted back to their 
431
 
 original representation.
432
 
<P>
433
 
<DD><DL>
434
 
</DL>
435
 
</DD>
436
 
<DD><DL>
437
 
<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - array of URL safe characters
438
 
<DT><B>Returns:</B><DD>array of original bytes
439
 
<DT><B>Throws:</B>
440
 
<DD><CODE><A HREF="../../../../../org/apache/commons/codec/DecoderException.html" title="class in org.apache.commons.codec">DecoderException</A></CODE> - Thrown if URL decoding is unsuccessful</DL>
441
 
</DD>
442
 
</DL>
443
 
<HR>
444
 
 
445
 
<A NAME="encode(byte[])"><!-- --></A><H3>
446
 
encode</H3>
447
 
<PRE>
448
 
public byte[] <A HREF="../../../../../src-html/org/apache/commons/codec/net/URLCodec.html#line.194"><B>encode</B></A>(byte[]&nbsp;bytes)</PRE>
449
 
<DL>
450
 
<DD>Encodes an array of bytes into an array of URL safe 7-bit 
451
 
 characters. Unsafe characters are escaped.
452
 
<P>
453
 
<DD><DL>
454
 
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/commons/codec/BinaryEncoder.html#encode(byte[])">encode</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/codec/BinaryEncoder.html" title="interface in org.apache.commons.codec">BinaryEncoder</A></CODE></DL>
455
 
</DD>
456
 
<DD><DL>
457
 
<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - array of bytes to convert to URL safe characters
458
 
<DT><B>Returns:</B><DD>array of bytes containing URL safe characters</DL>
459
 
</DD>
460
 
</DL>
461
 
<HR>
462
 
 
463
 
<A NAME="decode(byte[])"><!-- --></A><H3>
464
 
decode</H3>
465
 
<PRE>
466
 
public byte[] <A HREF="../../../../../src-html/org/apache/commons/codec/net/URLCodec.html#line.208"><B>decode</B></A>(byte[]&nbsp;bytes)
467
 
              throws <A HREF="../../../../../org/apache/commons/codec/DecoderException.html" title="class in org.apache.commons.codec">DecoderException</A></PRE>
468
 
<DL>
469
 
<DD>Decodes an array of URL safe 7-bit characters into an array of 
470
 
 original bytes. Escaped characters are converted back to their 
471
 
 original representation.
472
 
<P>
473
 
<DD><DL>
474
 
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/commons/codec/BinaryDecoder.html#decode(byte[])">decode</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/codec/BinaryDecoder.html" title="interface in org.apache.commons.codec">BinaryDecoder</A></CODE></DL>
475
 
</DD>
476
 
<DD><DL>
477
 
<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - array of URL safe characters
478
 
<DT><B>Returns:</B><DD>array of original bytes
479
 
<DT><B>Throws:</B>
480
 
<DD><CODE><A HREF="../../../../../org/apache/commons/codec/DecoderException.html" title="class in org.apache.commons.codec">DecoderException</A></CODE> - Thrown if URL decoding is unsuccessful</DL>
481
 
</DD>
482
 
</DL>
483
 
<HR>
484
 
 
485
 
<A NAME="encode(java.lang.String, java.lang.String)"><!-- --></A><H3>
486
 
encode</H3>
487
 
<PRE>
488
 
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <A HREF="../../../../../src-html/org/apache/commons/codec/net/URLCodec.html#line.223"><B>encode</B></A>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;pString,
489
 
                     <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;charset)
490
 
              throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/UnsupportedEncodingException.html?is-external=true" title="class or interface in java.io">UnsupportedEncodingException</A></PRE>
491
 
<DL>
492
 
<DD>Encodes a string into its URL safe form using the specified string charset. Unsafe characters are escaped.
493
 
<P>
494
 
<DD><DL>
495
 
</DL>
496
 
</DD>
497
 
<DD><DL>
498
 
<DT><B>Parameters:</B><DD><CODE>pString</CODE> - string to convert to a URL safe form<DD><CODE>charset</CODE> - the charset for pString
499
 
<DT><B>Returns:</B><DD>URL safe string
500
 
<DT><B>Throws:</B>
501
 
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/UnsupportedEncodingException.html?is-external=true" title="class or interface in java.io">UnsupportedEncodingException</A></CODE> - Thrown if charset is not supported</DL>
502
 
</DD>
503
 
</DL>
504
 
<HR>
505
 
 
506
 
<A NAME="encode(java.lang.String)"><!-- --></A><H3>
507
 
encode</H3>
508
 
<PRE>
509
 
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <A HREF="../../../../../src-html/org/apache/commons/codec/net/URLCodec.html#line.240"><B>encode</B></A>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;pString)
510
 
              throws <A HREF="../../../../../org/apache/commons/codec/EncoderException.html" title="class in org.apache.commons.codec">EncoderException</A></PRE>
511
 
<DL>
512
 
<DD>Encodes a string into its URL safe form using the default string 
513
 
 charset. Unsafe characters are escaped.
514
 
<P>
515
 
<DD><DL>
516
 
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/commons/codec/StringEncoder.html#encode(java.lang.String)">encode</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/codec/StringEncoder.html" title="interface in org.apache.commons.codec">StringEncoder</A></CODE></DL>
517
 
</DD>
518
 
<DD><DL>
519
 
<DT><B>Parameters:</B><DD><CODE>pString</CODE> - string to convert to a URL safe form
520
 
<DT><B>Returns:</B><DD>URL safe string
521
 
<DT><B>Throws:</B>
522
 
<DD><CODE><A HREF="../../../../../org/apache/commons/codec/EncoderException.html" title="class in org.apache.commons.codec">EncoderException</A></CODE> - Thrown if URL encoding is unsuccessful<DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/codec/net/URLCodec.html#getDefaultCharset()"><CODE>getDefaultCharset()</CODE></A></DL>
523
 
</DD>
524
 
</DL>
525
 
<HR>
526
 
 
527
 
<A NAME="decode(java.lang.String, java.lang.String)"><!-- --></A><H3>
528
 
decode</H3>
529
 
<PRE>
530
 
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <A HREF="../../../../../src-html/org/apache/commons/codec/net/URLCodec.html#line.264"><B>decode</B></A>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;pString,
531
 
                     <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;charset)
532
 
              throws <A HREF="../../../../../org/apache/commons/codec/DecoderException.html" title="class in org.apache.commons.codec">DecoderException</A>,
533
 
                     <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/UnsupportedEncodingException.html?is-external=true" title="class or interface in java.io">UnsupportedEncodingException</A></PRE>
534
 
<DL>
535
 
<DD>Decodes a URL safe string into its original form using the 
536
 
 specified encoding. Escaped characters are converted back 
537
 
 to their original representation.
538
 
<P>
539
 
<DD><DL>
540
 
</DL>
541
 
</DD>
542
 
<DD><DL>
543
 
<DT><B>Parameters:</B><DD><CODE>pString</CODE> - URL safe string to convert into its original form<DD><CODE>charset</CODE> - the original string charset
544
 
<DT><B>Returns:</B><DD>original string
545
 
<DT><B>Throws:</B>
546
 
<DD><CODE><A HREF="../../../../../org/apache/commons/codec/DecoderException.html" title="class in org.apache.commons.codec">DecoderException</A></CODE> - Thrown if URL decoding is unsuccessful
547
 
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/UnsupportedEncodingException.html?is-external=true" title="class or interface in java.io">UnsupportedEncodingException</A></CODE> - Thrown if charset is not
548
 
                                      supported</DL>
549
 
</DD>
550
 
</DL>
551
 
<HR>
552
 
 
553
 
<A NAME="decode(java.lang.String)"><!-- --></A><H3>
554
 
decode</H3>
555
 
<PRE>
556
 
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <A HREF="../../../../../src-html/org/apache/commons/codec/net/URLCodec.html#line.282"><B>decode</B></A>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;pString)
557
 
              throws <A HREF="../../../../../org/apache/commons/codec/DecoderException.html" title="class in org.apache.commons.codec">DecoderException</A></PRE>
558
 
<DL>
559
 
<DD>Decodes a URL safe string into its original form using the default
560
 
 string charset. Escaped characters are converted back to their 
561
 
 original representation.
562
 
<P>
563
 
<DD><DL>
564
 
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/commons/codec/StringDecoder.html#decode(java.lang.String)">decode</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/codec/StringDecoder.html" title="interface in org.apache.commons.codec">StringDecoder</A></CODE></DL>
565
 
</DD>
566
 
<DD><DL>
567
 
<DT><B>Parameters:</B><DD><CODE>pString</CODE> - URL safe string to convert into its original form
568
 
<DT><B>Returns:</B><DD>original string
569
 
<DT><B>Throws:</B>
570
 
<DD><CODE><A HREF="../../../../../org/apache/commons/codec/DecoderException.html" title="class in org.apache.commons.codec">DecoderException</A></CODE> - Thrown if URL decoding is unsuccessful<DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/codec/net/URLCodec.html#getDefaultCharset()"><CODE>getDefaultCharset()</CODE></A></DL>
571
 
</DD>
572
 
</DL>
573
 
<HR>
574
 
 
575
 
<A NAME="encode(java.lang.Object)"><!-- --></A><H3>
576
 
encode</H3>
577
 
<PRE>
578
 
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> <A HREF="../../../../../src-html/org/apache/commons/codec/net/URLCodec.html#line.303"><B>encode</B></A>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;pObject)
579
 
              throws <A HREF="../../../../../org/apache/commons/codec/EncoderException.html" title="class in org.apache.commons.codec">EncoderException</A></PRE>
580
 
<DL>
581
 
<DD>Encodes an object into its URL safe form. Unsafe characters are 
582
 
 escaped.
583
 
<P>
584
 
<DD><DL>
585
 
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/commons/codec/Encoder.html#encode(java.lang.Object)">encode</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/codec/Encoder.html" title="interface in org.apache.commons.codec">Encoder</A></CODE></DL>
586
 
</DD>
587
 
<DD><DL>
588
 
<DT><B>Parameters:</B><DD><CODE>pObject</CODE> - string to convert to a URL safe form
589
 
<DT><B>Returns:</B><DD>URL safe object
590
 
<DT><B>Throws:</B>
591
 
<DD><CODE><A HREF="../../../../../org/apache/commons/codec/EncoderException.html" title="class in org.apache.commons.codec">EncoderException</A></CODE> - Thrown if URL encoding is not 
592
 
                          applicable to objects of this type or
593
 
                          if encoding is unsuccessful</DL>
594
 
</DD>
595
 
</DL>
596
 
<HR>
597
 
 
598
 
<A NAME="decode(java.lang.Object)"><!-- --></A><H3>
599
 
decode</H3>
600
 
<PRE>
601
 
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> <A HREF="../../../../../src-html/org/apache/commons/codec/net/URLCodec.html#line.328"><B>decode</B></A>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;pObject)
602
 
              throws <A HREF="../../../../../org/apache/commons/codec/DecoderException.html" title="class in org.apache.commons.codec">DecoderException</A></PRE>
603
 
<DL>
604
 
<DD>Decodes a URL safe object into its original form. Escaped characters are converted back to their original
605
 
 representation.
606
 
<P>
607
 
<DD><DL>
608
 
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/commons/codec/Decoder.html#decode(java.lang.Object)">decode</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/codec/Decoder.html" title="interface in org.apache.commons.codec">Decoder</A></CODE></DL>
609
 
</DD>
610
 
<DD><DL>
611
 
<DT><B>Parameters:</B><DD><CODE>pObject</CODE> - URL safe object to convert into its original form
612
 
<DT><B>Returns:</B><DD>original object
613
 
<DT><B>Throws:</B>
614
 
<DD><CODE><A HREF="../../../../../org/apache/commons/codec/DecoderException.html" title="class in org.apache.commons.codec">DecoderException</A></CODE> - Thrown if the argument is not a <code>String</code> or <code>byte[]</code>. Thrown if a failure condition is
615
 
                  encountered during the decode process.</DL>
616
 
</DD>
617
 
</DL>
618
 
<HR>
619
 
 
620
 
<A NAME="getEncoding()"><!-- --></A><H3>
621
 
getEncoding</H3>
622
 
<PRE>
623
 
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <A HREF="../../../../../src-html/org/apache/commons/codec/net/URLCodec.html#line.348"><B>getEncoding</B></A>()</PRE>
624
 
<DL>
625
 
<DD><B>Deprecated.</B>&nbsp;<I>use #getDefaultCharset()</I>
626
 
<P>
627
 
<DD>The <code>String</code> encoding used for decoding and encoding.
628
 
<P>
629
 
<DD><DL>
630
 
</DL>
631
 
</DD>
632
 
<DD><DL>
633
 
 
634
 
<DT><B>Returns:</B><DD>Returns the encoding.</DL>
635
 
</DD>
636
 
</DL>
637
 
<HR>
638
 
 
639
 
<A NAME="getDefaultCharset()"><!-- --></A><H3>
640
 
getDefaultCharset</H3>
641
 
<PRE>
642
 
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <A HREF="../../../../../src-html/org/apache/commons/codec/net/URLCodec.html#line.357"><B>getDefaultCharset</B></A>()</PRE>
643
 
<DL>
644
 
<DD>The default charset used for string decoding and encoding.
645
 
<P>
646
 
<DD><DL>
647
 
</DL>
648
 
</DD>
649
 
<DD><DL>
650
 
 
651
 
<DT><B>Returns:</B><DD>the default string charset.</DL>
652
 
</DD>
653
 
</DL>
654
 
<!-- ========= END OF CLASS DATA ========= -->
655
 
<HR>
656
 
 
657
 
 
658
 
<!-- ======= START OF BOTTOM NAVBAR ====== -->
659
 
<A NAME="navbar_bottom"><!-- --></A>
660
 
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
661
 
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
662
 
<TR>
663
 
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
664
 
<A NAME="navbar_bottom_firstrow"><!-- --></A>
665
 
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
666
 
  <TR ALIGN="center" VALIGN="top">
667
 
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
668
 
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
669
 
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
670
 
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/URLCodec.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
671
 
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
672
 
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
673
 
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
674
 
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
675
 
  </TR>
676
 
</TABLE>
677
 
</TD>
678
 
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
679
 
</EM>
680
 
</TD>
681
 
</TR>
682
 
 
683
 
<TR>
684
 
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
685
 
&nbsp;<A HREF="../../../../../org/apache/commons/codec/net/QuotedPrintableCodec.html" title="class in org.apache.commons.codec.net"><B>PREV CLASS</B></A>&nbsp;
686
 
&nbsp;NEXT CLASS</FONT></TD>
687
 
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
688
 
  <A HREF="../../../../../index.html?org/apache/commons/codec/net/URLCodec.html" target="_top"><B>FRAMES</B></A>  &nbsp;
689
 
&nbsp;<A HREF="URLCodec.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
690
 
&nbsp;<SCRIPT type="text/javascript">
691
 
  <!--
692
 
  if(window==top) {
693
 
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
694
 
  }
695
 
  //-->
696
 
</SCRIPT>
697
 
<NOSCRIPT>
698
 
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
699
 
</NOSCRIPT>
700
 
 
701
 
 
702
 
</FONT></TD>
703
 
</TR>
704
 
<TR>
705
 
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
706
 
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
707
 
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
708
 
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
709
 
</TR>
710
 
</TABLE>
711
 
<A NAME="skip-navbar_bottom"></A>
712
 
<!-- ======== END OF BOTTOM NAVBAR ======= -->
713
 
 
714
 
<HR>
715
 
Copyright &#169; 2002-2009 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
716
 
</BODY>
717
 
</HTML>