forked from I2P_Developers/i2p.i2p
Made logs actually go through I2P logging system
(human)
This commit is contained in:
@@ -7,6 +7,8 @@ import java.io.IOException;
|
|||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
||||||
|
import net.i2p.util.Log;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Encodes and decodes to and from Base64 notation.
|
* Encodes and decodes to and from Base64 notation.
|
||||||
*
|
*
|
||||||
@@ -37,6 +39,9 @@ import java.io.OutputStream;
|
|||||||
* @version 1.3.4
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
public class Base64 {
|
public class Base64 {
|
||||||
|
|
||||||
|
private final static Log _log = new Log(Base64.class);
|
||||||
|
|
||||||
public static String encode(byte[] source) {
|
public static String encode(byte[] source) {
|
||||||
return safeEncode(source);
|
return safeEncode(source);
|
||||||
}
|
}
|
||||||
@@ -579,7 +584,7 @@ public class Base64 {
|
|||||||
|
|
||||||
} // end if: white space, equals sign or better
|
} // end if: white space, equals sign or better
|
||||||
else {
|
else {
|
||||||
System.err.println("Bad Base64 input character at " + i + ": " + source[i] + "(decimal)");
|
_log.warn("Bad Base64 input character at " + i + ": " + source[i] + "(decimal)");
|
||||||
return null;
|
return null;
|
||||||
} // end else:
|
} // end else:
|
||||||
} // each input character
|
} // each input character
|
||||||
|
Reference in New Issue
Block a user