]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/gfx/clipboard/streams/AddBitmapHeaderInputStream.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.utils.ui / src / org / simantics / utils / ui / gfx / clipboard / streams / AddBitmapHeaderInputStream.java
index 98d6f8bc552c7b997778056f21098d2366a72434..738fa2bc05296a7e9a722be44caba54d72934099 100644 (file)
@@ -1,44 +1,44 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- * in 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
-package org.simantics.utils.ui.gfx.clipboard.streams;\r
-\r
-import java.io.IOException;\r
-import java.io.InputStream;\r
-\r
-import org.simantics.utils.ui.gfx.clipboard.headers.BitmapFileHeader;\r
-\r
-\r
-/**\r
- * Adds WIN32 API BITMAPFILEHEADER into the beginning of stream \r
- * \r
- * @author Marko Luukkainen\r
- *\r
- */\r
-public class AddBitmapHeaderInputStream extends InputStream{\r
-    private InputStream iStream;\r
-    private int readBytes = 0;\r
-    private byte[] header;\r
-    \r
-    public AddBitmapHeaderInputStream(InputStream iStream) {\r
-        this.iStream = iStream;\r
-        BitmapFileHeader bfHeader = new BitmapFileHeader();\r
-        header = bfHeader.getBytes();\r
-    }\r
-    \r
-    @Override\r
-    public int read() throws IOException {\r
-        if (readBytes < header.length) {\r
-            return 0xff & header[readBytes++];\r
-        }\r
-        return iStream.read();\r
-    }\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 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.utils.ui.gfx.clipboard.streams;
+
+import java.io.IOException;
+import java.io.InputStream;
+
+import org.simantics.utils.ui.gfx.clipboard.headers.BitmapFileHeader;
+
+
+/**
+ * Adds WIN32 API BITMAPFILEHEADER into the beginning of stream 
+ * 
+ * @author Marko Luukkainen
+ *
+ */
+public class AddBitmapHeaderInputStream extends InputStream{
+    private InputStream iStream;
+    private int readBytes = 0;
+    private byte[] header;
+    
+    public AddBitmapHeaderInputStream(InputStream iStream) {
+        this.iStream = iStream;
+        BitmapFileHeader bfHeader = new BitmapFileHeader();
+        header = bfHeader.getBytes();
+    }
+    
+    @Override
+    public int read() throws IOException {
+        if (readBytes < header.length) {
+            return 0xff & header[readBytes++];
+        }
+        return iStream.read();
+    }
+}