Skip to content

Commit 6257f83

Browse files
committed
Bugzilla Bug 30864
[codec] Document how to print a QPDecoderStream with QCodec? Added Javadoc noting that arguments are expected to be String (and byte[] sometimes). Codec does not do Stream (yet). git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/codec/trunk@130413 13f79535-47bb-0310-9956-ffa450edef68
1 parent 82e6bf9 commit 6257f83

4 files changed

Lines changed: 12 additions & 30 deletions

File tree

src/java/org/apache/commons/codec/net/BCodec.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
*
4242
* @author Apache Software Foundation
4343
* @since 1.3
44-
* @version $Id: BCodec.java,v 1.8 2004/08/27 17:10:48 ggregory Exp $
44+
* @version $Id: BCodec.java,v 1.9 2004/08/27 17:18:17 ggregory Exp $
4545
*/
4646
public class BCodec extends RFC1522Codec implements StringEncoder, StringDecoder {
4747
/**
@@ -177,18 +177,14 @@ public Object encode(Object value) throws EncoderException {
177177
* Decodes a Base64 object into its original form. Escaped characters are converted back to their original
178178
* representation.
179179
*
180-
* <p>
181-
* <em>Currently, this method only works with <code>String</code> arguments.
182-
* A <code>DecoderException</code> is thrown if the argument is not a <code>String</code>.</em>
183-
* </p>
184-
*
185180
* @param value
186181
* Base64 object to convert into its original form
187182
*
188183
* @return original object
189184
*
190185
* @throws DecoderException
191-
* A decoder exception is thrown if a failure condition is encountered during the decode process.
186+
* Thrown if the argument is not a <code>String</code>. Thrown if a failure condition is
187+
* encountered during the decode process.
192188
*/
193189
public Object decode(Object value) throws DecoderException {
194190
if (value == null) {

src/java/org/apache/commons/codec/net/QCodec.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
*
4343
* @author Apache Software Foundation
4444
* @since 1.3
45-
* @version $Id: QCodec.java,v 1.8 2004/08/27 17:10:48 ggregory Exp $
45+
* @version $Id: QCodec.java,v 1.9 2004/08/27 17:18:17 ggregory Exp $
4646
*/
4747
public class QCodec extends RFC1522Codec implements StringEncoder, StringDecoder {
4848
/**
@@ -259,19 +259,14 @@ public Object encode(Object pObject) throws EncoderException {
259259
* Decodes a quoted-printable object into its original form. Escaped characters are converted back to their original
260260
* representation.
261261
*
262-
* <p>
263-
* <em>Currently, this method only works with <code>String</code> arguments.
264-
* A <code>DecoderException</code> is thrown if the argument is not a <code>String</code>.</em>
265-
* </p>
266-
*
267-
*
268262
* @param pObject
269263
* quoted-printable object to convert into its original form
270264
*
271265
* @return original object
272266
*
273267
* @throws DecoderException
274-
* A decoder exception is thrown if a failure condition is encountered during the decode process.
268+
* Thrown if the argument is not a <code>String</code>. Thrown if a failure condition is
269+
* encountered during the decode process.
275270
*/
276271
public Object decode(Object pObject) throws DecoderException {
277272
if (pObject == null) {

src/java/org/apache/commons/codec/net/QuotedPrintableCodec.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
*
5656
* @author Apache Software Foundation
5757
* @since 1.3
58-
* @version $Id: QuotedPrintableCodec.java,v 1.10 2004/08/27 17:10:48 ggregory Exp $
58+
* @version $Id: QuotedPrintableCodec.java,v 1.11 2004/08/27 17:18:17 ggregory Exp $
5959
*/
6060
public class QuotedPrintableCodec implements BinaryEncoder, BinaryDecoder, StringEncoder, StringDecoder {
6161
/**
@@ -332,17 +332,12 @@ public Object encode(Object pObject) throws EncoderException {
332332
* Decodes a quoted-printable object into its original form. Escaped characters are converted back to their original
333333
* representation.
334334
*
335-
* <p>
336-
* <em>Currently, this method only works with <code>String</code> and <code>byte[]</code> arguments.
337-
* A <code>DecoderException</code> is thrown if the argument is not a <code>String</code> or <code>byte[].</code></em>.
338-
* </p>
339-
*
340335
* @param pObject
341336
* quoted-printable object to convert into its original form
342337
* @return original object
343338
* @throws DecoderException
344-
* Thrown if quoted-printable decoding is not applicable to objects of this type if decoding is
345-
* unsuccessful
339+
* Thrown if the argument is not a <code>String</code> or <code>byte[]</code>. Thrown if a failure condition is
340+
* encountered during the decode process.
346341
*/
347342
public Object decode(Object pObject) throws DecoderException {
348343
if (pObject == null) {

src/java/org/apache/commons/codec/net/URLCodec.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
*
4646
* @author Apache Software Foundation
4747
* @since 1.2
48-
* @version $Id: URLCodec.java,v 1.21 2004/08/27 17:10:48 ggregory Exp $
48+
* @version $Id: URLCodec.java,v 1.22 2004/08/27 17:18:17 ggregory Exp $
4949
*/
5050
public class URLCodec implements BinaryEncoder, BinaryDecoder, StringEncoder, StringDecoder {
5151

@@ -321,16 +321,12 @@ public Object encode(Object pObject) throws EncoderException {
321321
* Decodes a URL safe object into its original form. Escaped characters are converted back to their original
322322
* representation.
323323
*
324-
* <p>
325-
* <em>Currently, this method only works with <code>String</code> and <code>byte[]</code> arguments.
326-
* A <code>DecoderException</code> is thrown if the argument is not a <code>String</code> or <code>byte[].</code></em>.
327-
* </p>
328-
*
329324
* @param pObject
330325
* URL safe object to convert into its original form
331326
* @return original object
332327
* @throws DecoderException
333-
* Thrown if URL decoding is not applicable to objects of this type if decoding is unsuccessful
328+
* Thrown if the argument is not a <code>String</code> or <code>byte[]</code>. Thrown if a failure condition is
329+
* encountered during the decode process.
334330
*/
335331
public Object decode(Object pObject) throws DecoderException {
336332
if (pObject == null) {

0 commit comments

Comments
 (0)