]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.compressions/src/org/simantics/compressions/impl/DecompressingCodecInputStream.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.compressions / src / org / simantics / compressions / impl / DecompressingCodecInputStream.java
index 9f6e3105ff9a5a84b88e4ab69dc25c9d40ccad23..2fb890b57df391551fc01f7a0d8105667ebbe0a2 100644 (file)
@@ -1,49 +1,49 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2012 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.compressions.impl;\r
-\r
-import java.io.File;\r
-import java.io.FileInputStream;\r
-import java.io.FileNotFoundException;\r
-import java.io.IOException;\r
-import java.io.InputStream;\r
-import java.nio.ByteBuffer;\r
-import java.nio.channels.ReadableByteChannel;\r
-\r
-import org.simantics.compressions.CompressionCodec;\r
-\r
-/**\r
- * @author Tuukka Lehtonen\r
- */\r
-public class DecompressingCodecInputStream extends DecompressingInputStream {\r
-\r
-    protected CompressionCodec codec;\r
-\r
-    public DecompressingCodecInputStream(CompressionCodec codec, File file) throws FileNotFoundException {\r
-        this(codec, new FileInputStream(file));\r
-    }\r
-\r
-    public DecompressingCodecInputStream(CompressionCodec codec, FileInputStream stream) {\r
-        this(codec, stream, stream.getChannel());\r
-    }\r
-\r
-    public DecompressingCodecInputStream(CompressionCodec codec, InputStream stream, ReadableByteChannel channel) {\r
-        super(stream, channel);\r
-        this.codec = codec;\r
-    }\r
-\r
-    public void decompress(ByteBuffer compressed, int compressedOffset, int compressedSize,\r
-            ByteBuffer uncompressed, int uncompressedOffset, int uncompressedSize) throws IOException {\r
-        codec.decompressBuffer(compressed, compressedOffset, compressedSize, uncompressed, uncompressedOffset, uncompressedSize);\r
-    }\r
-\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2012 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.compressions.impl;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.io.InputStream;
+import java.nio.ByteBuffer;
+import java.nio.channels.ReadableByteChannel;
+
+import org.simantics.compressions.CompressionCodec;
+
+/**
+ * @author Tuukka Lehtonen
+ */
+public class DecompressingCodecInputStream extends DecompressingInputStream {
+
+    protected CompressionCodec codec;
+
+    public DecompressingCodecInputStream(CompressionCodec codec, File file) throws FileNotFoundException {
+        this(codec, new FileInputStream(file));
+    }
+
+    public DecompressingCodecInputStream(CompressionCodec codec, FileInputStream stream) {
+        this(codec, stream, stream.getChannel());
+    }
+
+    public DecompressingCodecInputStream(CompressionCodec codec, InputStream stream, ReadableByteChannel channel) {
+        super(stream, channel);
+        this.codec = codec;
+    }
+
+    public void decompress(ByteBuffer compressed, int compressedOffset, int compressedSize,
+            ByteBuffer uncompressed, int uncompressedOffset, int uncompressedSize) throws IOException {
+        codec.decompressBuffer(compressed, compressedOffset, compressedSize, uncompressed, uncompressedOffset, uncompressedSize);
+    }
+
 }
\ No newline at end of file