Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a5523f1

Browse files
committed
minor changes
1 parent 819226b commit a5523f1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/biz/source_code/base64Coder/Base64Coder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* <p>
2424
* Project home page: <a href="http://www.source-code.biz">www.source-code.biz</a><br>
2525
* Author: Christian d'Heureuse, Inventec Informatik AG, Zurich, Switzerland<br>
26-
* Multi-licensed: EPL/LGPL/AL/BSD.
26+
* Multi-licensed: EPL / LGPL / AL / BSD.
2727
*/
2828
public class Base64Coder {
2929

src/samples/Base64FileDecoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ private static void decodeStream (BufferedReader in, OutputStream out) throws IO
3333
while (true) {
3434
String s = in.readLine();
3535
if (s == null) break;
36-
byte[] buf = Base64Coder.decode(s);
36+
byte[] buf = Base64Coder.decodeLines(s);
3737
out.write (buf); }}
3838

3939
} // end class Base64FileDecoder

src/samples/Base64FileEncoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private static void encodeStream (InputStream in, BufferedWriter out) throws IOE
3535
while (true) {
3636
int len = in.read(buf);
3737
if (len <= 0) break;
38-
out.write (Base64Coder.encode(buf, len));
38+
out.write (Base64Coder.encode(buf, 0, len));
3939
out.newLine(); }}
4040

4141
} // end class Base64FileEncoder

0 commit comments

Comments
 (0)