]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.databoard/src/org/simantics/databoard/util/binary/OutputStreamWriteable.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.databoard / src / org / simantics / databoard / util / binary / OutputStreamWriteable.java
index 9bea9c369ed8d6d0e86a0571618d07fe89301dce..f6182ee8f0c40d5634e55c351e2450b076deabc2 100644 (file)
@@ -1,19 +1,19 @@
-/*******************************************************************************\r
- *  Copyright (c) 2010 Association for Decentralized Information Management in\r
- *  Industry THTH ry.\r
- *  All rights reserved. This program and the accompanying materials\r
- *  are made available under the terms of the Eclipse Public License v1.0\r
- *  which accompanies this distribution, and is available at\r
- *  http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- *  Contributors:\r
- *      VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
+/*******************************************************************************
+ *  Copyright (c) 2010 Association for Decentralized Information Management in
+ *  Industry THTH ry.
+ *  All rights reserved. This program and the accompanying materials
+ *  are made available under the terms of the Eclipse Public License v1.0
+ *  which accompanies this distribution, and is available at
+ *  http://www.eclipse.org/legal/epl-v10.html
+ *
+ *  Contributors:
+ *      VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
 package org.simantics.databoard.util.binary;
 
-import java.io.IOException;\r
-import java.io.OutputStream;\r
-import java.nio.ByteBuffer;\r
+import java.io.IOException;
+import java.io.OutputStream;
+import java.nio.ByteBuffer;
 
 public class OutputStreamWriteable implements BinaryWriteable {
 
@@ -39,15 +39,15 @@ public class OutputStreamWriteable implements BinaryWriteable {
        @Override
        public void write(int b) throws IOException {
                _put(b);
-       }\r
-       \r
-       @Override\r
-       public void writeByte(int b) throws IOException {\r
-               _put(b);\r
-       }       \r
-       @Override\r
-       public void writeBoolean(boolean v) throws IOException {\r
-               _put( v ? 1 : 0);\r
+       }
+       
+       @Override
+       public void writeByte(int b) throws IOException {
+               _put(b);
+       }       
+       @Override
+       public void writeBoolean(boolean v) throws IOException {
+               _put( v ? 1 : 0);
        }
 
        @Override
@@ -117,38 +117,38 @@ public class OutputStreamWriteable implements BinaryWriteable {
        public void writeShort(int value) throws IOException {
                _put(value >> 8);
                _put(value);
-       }\r
-       \r
-       @Override\r
-       public void writeChar(int value) throws IOException {\r
-               _put(value >> 8);\r
-               _put(value);\r
-       }       \r
-       \r
-       @Override\r
-       public void writeBytes(String s) throws IOException {\r
-               int len = s.length();\r
-               for (int i = 0 ; i < len ; i++) {\r
-                   _put((byte)s.charAt(i));\r
-               }\r
-       }\r
+       }
+       
+       @Override
+       public void writeChar(int value) throws IOException {
+               _put(value >> 8);
+               _put(value);
+       }       
        
-       @Override\r
-       public void writeChars(String s) throws IOException {\r
-        int len = s.length();\r
-        for (int i = 0 ; i < len ; i++) {\r
-            int v = s.charAt(i);\r
-            _put((v >>> 8) & 0xFF); \r
-            _put((v >>> 0) & 0xFF); \r
-        }\r
-       }\r
-       \r
-       @Override\r
-       public void writeUTF(String s) throws IOException {\r
-               int len = UTF8.getModifiedUTF8EncodingByteLength(s);\r
-               writeShort(len);\r
-               UTF8.writeModifiedUTF(this, s);\r
-       }\r
+       @Override
+       public void writeBytes(String s) throws IOException {
+               int len = s.length();
+               for (int i = 0 ; i < len ; i++) {
+                   _put((byte)s.charAt(i));
+               }
+       }
+       
+       @Override
+       public void writeChars(String s) throws IOException {
+        int len = s.length();
+        for (int i = 0 ; i < len ; i++) {
+            int v = s.charAt(i);
+            _put((v >>> 8) & 0xFF); 
+            _put((v >>> 0) & 0xFF); 
+        }
+       }
+       
+       @Override
+       public void writeUTF(String s) throws IOException {
+               int len = UTF8.getModifiedUTF8EncodingByteLength(s);
+               writeShort(len);
+               UTF8.writeModifiedUTF(this, s);
+       }
        
        @Override
        public void flush() throws IOException {