01: // You can redistribute this software and/or modify it under the terms of
02: // the Ozone Core License version 1 published by ozone-db.org.
03: //
04: // The original code and portions created by SMB are
05: // Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
06: //
07: // $Id: NullOutputStream.java,v 1.1 2002/07/26 12:28:58 per_nyfelt Exp $
08: package org.ozoneDB.io.stream;
09:
10: import java.io.OutputStream;
11:
12: /**
13: Ein OutputStream, der die Daten im Nirvana verschwinden lässt
14:
15: @author <A HREF="http://www.medium.net/">Medium.net</A>
16: */
17: public class NullOutputStream extends OutputStream {
18:
19: protected final static NullOutputStream default0 = new NullOutputStream();
20:
21: /**
22: Gibt den voreingestellten NullOutputStream zurück.
23: */
24: public static NullOutputStream getDefault() {
25: return default0;
26: }
27:
28: /**
29: Erzeugt einen neuen NullOutputStream.
30: */
31: public NullOutputStream() {
32: }
33:
34: /**
35: Macht nix.
36: */
37: public void write(int b) {
38: }
39:
40: /**
41: Macht nix.
42: */
43: public void write(byte b[], int off, int len) {
44: }
45:
46: }
|