Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.facelets.mock
Class MockServletInputStream  view MockServletInputStream download MockServletInputStream.java

java.lang.Object
  extended byjava.io.InputStream
      extended byjavax.servlet.ServletInputStream
          extended bycom.sun.facelets.mock.MockServletInputStream
All Implemented Interfaces:
java.io.Closeable

public class MockServletInputStream
extends javax.servlet.ServletInputStream

Version:
$Id: MockServletInputStream.java,v 1.1 2005/07/18 08:25:42 jhook Exp $

Field Summary
private  java.io.InputStream source
           
 
Constructor Summary
MockServletInputStream()
           
MockServletInputStream(java.io.InputStream source)
           
 
Method Summary
 int read()
          This method reads an unsigned byte from the input stream and returns it as an int in the range of 0-255.
 
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

source

private final java.io.InputStream source
Constructor Detail

MockServletInputStream

public MockServletInputStream()

MockServletInputStream

public MockServletInputStream(java.io.InputStream source)
Method Detail

read

public int read()
         throws java.io.IOException
Description copied from class: java.io.InputStream
This method reads an unsigned byte from the input stream and returns it as an int in the range of 0-255. This method also will return -1 if the end of the stream has been reached.

This method will block until the byte can be read.