Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pkix/src/main/java/org/spongycastle/cms/NullOutputStream.java')
-rw-r--r--pkix/src/main/java/org/spongycastle/cms/NullOutputStream.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkix/src/main/java/org/spongycastle/cms/NullOutputStream.java b/pkix/src/main/java/org/spongycastle/cms/NullOutputStream.java
new file mode 100644
index 00000000..c5ccd4ec
--- /dev/null
+++ b/pkix/src/main/java/org/spongycastle/cms/NullOutputStream.java
@@ -0,0 +1,28 @@
+/**
+ *
+ */
+package org.spongycastle.cms;
+
+import java.io.IOException;
+import java.io.OutputStream;
+
+class NullOutputStream
+ extends OutputStream
+{
+ public void write(byte[] buf)
+ throws IOException
+ {
+ // do nothing
+ }
+
+ public void write(byte[] buf, int off, int len)
+ throws IOException
+ {
+ // do nothing
+ }
+
+ public void write(int b) throws IOException
+ {
+ // do nothing
+ }
+} \ No newline at end of file