info.monitorenter.cpdetector.io
Class InputStreamDebug

java.lang.Object
  extended byjava.io.InputStream
      extended byinfo.monitorenter.cpdetector.io.InputStreamDebug

public class InputStreamDebug
extends InputStream

Prints m_out every character read. Use as a proxy. Only needed for debugging the ANTLR Parser (ParsingDetector). Therefore the chronological order is preserved: sun's StreamDecoder.CharsetDS (nio) replaces InputStream.read() by buffer operations that fetch complete arrays. This is avoided by allowing to fetch only one char per method call.

Author:
Achim Westermann

Constructor Summary
InputStreamDebug(InputStream delegate)
           
 
Method Summary
 int available()
           
 void close()
           
 boolean equals(Object obj)
           
 int hashCode()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InputStreamDebug

public InputStreamDebug(InputStream delegate)
Method Detail

read

public int read()
         throws IOException
Throws:
IOException

available

public int available()
              throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

equals

public boolean equals(Object obj)

hashCode

public int hashCode()

mark

public void mark(int readlimit)

markSupported

public boolean markSupported()

read

public int read(byte[] b)
         throws IOException
Throws:
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Throws:
IOException

reset

public void reset()
           throws IOException
Throws:
IOException

skip

public long skip(long n)
          throws IOException
Throws:
IOException

toString

public String toString()


Copyleft ㊢ 2003-2004 MPL 1.1, All Rights Footloose.