org.mesopotamia.lang.java
Class CheatingFilterReader
java.lang.Object
java.io.Reader
java.io.FilterReader
org.mesopotamia.lang.java.CheatingFilterReader
- All Implemented Interfaces:
- java.io.Closeable, java.lang.Readable
public class CheatingFilterReader
- extends java.io.FilterReader
There is a bug/problem in java.g - it hangs on SL_COMMENT at the end of file.
This class virtually adds '\n' characted at the end of file.
- Version:
- $Revision: 1.1 $
- Author:
- Pavel Vlasov
Fields inherited from class java.io.FilterReader |
in |
Fields inherited from class java.io.Reader |
lock |
Constructor Summary |
CheatingFilterReader(java.io.Reader in)
Creates a new instance of CheatingFilterReader |
Method Summary |
int |
read()
|
int |
read(char[] cbuf,
int off,
int len)
|
boolean |
ready()
|
void |
reset()
|
Methods inherited from class java.io.FilterReader |
close, mark, markSupported, skip |
Methods inherited from class java.io.Reader |
read, read |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CheatingFilterReader
public CheatingFilterReader(java.io.Reader in)
- Creates a new instance of CheatingFilterReader
read
public int read()
throws java.io.IOException
- Overrides:
read
in class java.io.FilterReader
- Throws:
java.io.IOException
read
public int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
- Overrides:
read
in class java.io.FilterReader
- Throws:
java.io.IOException
ready
public boolean ready()
throws java.io.IOException
- Overrides:
ready
in class java.io.FilterReader
- Throws:
java.io.IOException
reset
public void reset()
throws java.io.IOException
- Overrides:
reset
in class java.io.FilterReader
- Throws:
java.io.IOException
Copyright © 2005 Hammurapi Group. All Rights Reserved.