diff options
author | peter.danner <peter.danner@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2007-08-01 12:32:33 +0000 |
---|---|---|
committer | peter.danner <peter.danner@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2007-08-01 12:32:33 +0000 |
commit | dcc799b7a090d1a4e3a4f0ee1779bd86eedf7441 (patch) | |
tree | a0ccc1f207233f1083ac1e087cbaede84270bf58 /common/src | |
parent | b6414c56a0dbbb2dbc3684e0ee434e0f711ad6ef (diff) | |
download | moa-id-spss-dcc799b7a090d1a4e3a4f0ee1779bd86eedf7441.tar.gz moa-id-spss-dcc799b7a090d1a4e3a4f0ee1779bd86eedf7441.tar.bz2 moa-id-spss-dcc799b7a090d1a4e3a4f0ee1779bd86eedf7441.zip |
Changed encode() for serializeNode and #&13; problem. Now the (default) line break is \n instead of \r\n on Windows platforms
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@874 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'common/src')
-rw-r--r-- | common/src/at/gv/egovernment/moa/util/Base64Utils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/src/at/gv/egovernment/moa/util/Base64Utils.java b/common/src/at/gv/egovernment/moa/util/Base64Utils.java index ba2c4fb0e..ad29180a6 100644 --- a/common/src/at/gv/egovernment/moa/util/Base64Utils.java +++ b/common/src/at/gv/egovernment/moa/util/Base64Utils.java @@ -92,7 +92,7 @@ public class Base64Utils { */ public static String encode(InputStream inputStream) throws IOException { ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); - Base64OutputStream base64Stream = new Base64OutputStream(byteStream); + Base64OutputStream base64Stream = new Base64OutputStream(byteStream, "\n".getBytes()); byte[] bytes = new byte[256]; int bytesRead; |