|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.io.base64.Base64Decoder
public abstract class Base64Decoder
Base64Decoder provides methods to ease the decoding of strings and byte arrays in base64.
The Base64InputStream class is used under the hood to perform the actual base64 decoding.
Base64InputStream| Constructor Summary | |
|---|---|
Base64Decoder()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
decode(java.lang.String s)
Shorthand for decode(String, String) invoked with UTF-8 encoding. |
static java.lang.String |
decode(java.lang.String s,
java.lang.String encoding)
Decodes the given Base64-encoded string and returns the result as a String. |
static byte[] |
decodeAsBytes(java.lang.String s)
Decodes the given Base64-encoded string and returns the result as a byte array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Base64Decoder()
| Method Detail |
|---|
public static byte[] decodeAsBytes(java.lang.String s)
throws java.io.IOException
IOException if the String isn't properly Base64-encoded.
s - a Base64-encoded String
java.io.IOException - if the given String isn't properly Base64-encoded
public static java.lang.String decode(java.lang.String s,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException,
java.io.IOException
IOException if the String isn't properly
Base64-encoded, or if the encoding is not supported by the Java runtime.
s - a Base64-encoded Stringencoding - the character encoding to use for transforming the decoded bytes into a String
java.io.UnsupportedEncodingException - if the specified encoding is not supported by the Java runtime
java.io.IOException - if the given String isn't properly Base64-encoded
public static java.lang.String decode(java.lang.String s)
throws java.io.IOException
decode(String, String) invoked with UTF-8 encoding.
s - a Base64-encoded String
java.io.IOException - if the given String isn't properly Base64-encoded
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard