zcommon/src/main/java/org/zkoss/io/NullInputStream.java

Summary

Maintainability
A
0 mins
Test Coverage
/* NullInputStream.java

    Purpose:
        
    Description:
        
    History:
        Wed Jan 24 11:16:26     2007, Created by tomyeh

Copyright (C) 2007 Potix Corporation. All Rights Reserved.

{{IS_RIGHT
    This program is distributed under LGPL Version 2.1 in the hope that
    it will be useful, but WITHOUT ANY WARRANTY.
}}IS_RIGHT
*/
package org.zkoss.io;

/**
 * An input stream that returns nothing, a.k.a, an empty input stream.
 
 * @author tomyeh
 * @see NullWriter
 * @see NullReader
 */
public class NullInputStream extends java.io.InputStream {
    public int read() {
        return -1;
    }
}