]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.fastlz/testcases/org/simantics/fastlz/NullOutputStream.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.fastlz / testcases / org / simantics / fastlz / NullOutputStream.java
1 package org.simantics.fastlz;\r
2 \r
3 import java.io.IOException;\r
4 import java.io.OutputStream;\r
5 \r
6 /**\r
7  * @author Tuukka Lehtonen\r
8  */\r
9 public class NullOutputStream extends OutputStream {\r
10 \r
11         public static final NullOutputStream INSTANCE = new NullOutputStream();\r
12         \r
13         @Override\r
14         public void write(int b) throws IOException {\r
15         }\r
16 \r
17         @Override\r
18         public void write(byte[] b) throws IOException {\r
19         }\r
20 \r
21         @Override\r
22         public void write(byte[] b, int off, int len) throws IOException {\r
23         }\r
24 \r
25 }\r