info.monitorenter.cpdetector.io
Class InputStreamDebug
java.lang.Object
java.io.InputStream
info.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
InputStreamDebug
public InputStreamDebug(InputStream delegate)
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.