01: /* NullInputStream.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Wed Jan 24 11:16:26 2007, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2007 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.io;
20:
21: /**
22: * An input stream that returns nothing, aka, an empty input stream.
23:
24: * @author tomyeh
25: * @see NullWriter
26: * @see NullReader
27: */
28: public class NullInputStream extends java.io.InputStream {
29: public int read() {
30: return -1;
31: }
32: }
|