~brian-thomason/+junk/bouncycastle

« back to all changes in this revision

Viewing changes to src/org/bouncycastle/cms/NullOutputStream.java

  • Committer: Brian Thomason
  • Date: 2011-12-20 17:20:32 UTC
  • Revision ID: brian.thomason@canonical.com-20111220172032-rdtm13jgdxtksacr
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * 
 
3
 */
 
4
package org.bouncycastle.cms;
 
5
 
 
6
import java.io.IOException;
 
7
import java.io.OutputStream;
 
8
 
 
9
class NullOutputStream
 
10
    extends OutputStream
 
11
{
 
12
    public void write(byte[] buf)
 
13
        throws IOException
 
14
    {
 
15
        // do nothing
 
16
    }
 
17
 
 
18
    public void write(byte[] buf, int off, int len)
 
19
        throws IOException
 
20
    {
 
21
        // do nothing
 
22
    }
 
23
    
 
24
    public void write(int b) throws IOException
 
25
    {
 
26
        // do nothing
 
27
    }
 
28
}
 
 
b'\\ No newline at end of file'