org.apache.cocoon.servletservice.util
Class NullServletInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by javax.servlet.ServletInputStream
          extended by org.apache.cocoon.servletservice.util.NullServletInputStream
All Implemented Interfaces:
Closeable

public class NullServletInputStream
extends javax.servlet.ServletInputStream

Always empty stream.

Since:
1.0.0
Version:
$Id: NullServletInputStream.html 1422810 2012-12-17 09:13:50Z ilgrosso $

Field Summary
static NullServletInputStream INSTANCE
           
 
Constructor Summary
NullServletInputStream()
           
 
Method Summary
 int read()
           
 
Methods inherited from class javax.servlet.ServletInputStream
readLine
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final NullServletInputStream INSTANCE
Constructor Detail

NullServletInputStream

public NullServletInputStream()
Method Detail

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.