mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-03 03:25:28 -04:00
Removed a misleading comment.
This commit is contained in:
parent
69d77071b9
commit
b7124585c5
@ -115,13 +115,7 @@ public class BASE64 {
|
|||||||
return buf.toString();
|
return buf.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public static byte[] decode(String pData) throws IOException {
|
||||||
* Quick implementation, using the undocumented
|
|
||||||
* {@code sun.misc.BASE64Decoder.decodeBuffer(String)}.
|
|
||||||
*/
|
|
||||||
public static byte[] decode(String pData) throws java.io.IOException {
|
|
||||||
//return DECODER.decodeBuffer(pData);
|
|
||||||
|
|
||||||
InputStream in = new DecoderStream(new ByteArrayInputStream(pData.getBytes()), new Base64Decoder());
|
InputStream in = new DecoderStream(new ByteArrayInputStream(pData.getBytes()), new Base64Decoder());
|
||||||
ByteArrayOutputStream bytes = new FastByteArrayOutputStream(pData.length() * 3);
|
ByteArrayOutputStream bytes = new FastByteArrayOutputStream(pData.length() * 3);
|
||||||
FileUtil.copy(in, bytes);
|
FileUtil.copy(in, bytes);
|
||||||
@ -131,7 +125,7 @@ public class BASE64 {
|
|||||||
|
|
||||||
//private final static sun.misc.BASE64Decoder DECODER = new sun.misc.BASE64Decoder();
|
//private final static sun.misc.BASE64Decoder DECODER = new sun.misc.BASE64Decoder();
|
||||||
|
|
||||||
public static void main(String[] pArgs) throws java.io.IOException {
|
public static void main(String[] pArgs) throws IOException {
|
||||||
if (pArgs.length == 1) {
|
if (pArgs.length == 1) {
|
||||||
System.out.println(encode(pArgs[0].getBytes()));
|
System.out.println(encode(pArgs[0].getBytes()));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user