KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > io > stream > NullOutputStream


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Core License version 1 published by ozone-db.org.
3
//
4
// The original code and portions created by SMB are
5
// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
6
//
7
// $Id: NullOutputStream.java,v 1.1 2001/12/18 10:31:30 per_nyfelt Exp $
8
package org.ozoneDB.io.stream;
9
10 import java.io.OutputStream JavaDoc;
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 JavaDoc {
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 }
Popular Tags