File tree Expand file tree Collapse file tree
src/java/org/apache/commons/codec/net Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141 *
4242 * @author Apache Software Foundation
4343 * @since 1.3
44- * @version $Id: BCodec.java,v 1.9 2004/08/27 17:18:17 ggregory Exp $
44+ * @version $Id: BCodec.java,v 1.10 2004/09/01 17:34:38 ggregory Exp $
4545 */
4646public class BCodec extends RFC1522Codec implements StringEncoder , StringDecoder {
4747 /**
@@ -74,14 +74,14 @@ protected String getEncoding() {
7474 return "B" ;
7575 }
7676
77- protected byte [] doEncoding (byte [] bytes ) throws EncoderException {
77+ protected byte [] doEncoding (byte [] bytes ) {
7878 if (bytes == null ) {
7979 return null ;
8080 }
8181 return Base64 .encodeBase64 (bytes );
8282 }
8383
84- protected byte [] doDecoding (byte [] bytes ) throws DecoderException {
84+ protected byte [] doDecoding (byte [] bytes ) {
8585 if (bytes == null ) {
8686 return null ;
8787 }
@@ -94,7 +94,7 @@ protected byte[] doDecoding(byte[] bytes) throws DecoderException {
9494 * @param value
9595 * string to convert to Base64 form
9696 * @param charset
97- * the charset for pString
97+ * the charset for <code>value</code>
9898 * @return Base64 string
9999 *
100100 * @throws EncoderException
You can’t perform that action at this time.
0 commit comments