public class FakingReader extends Reader
Modifier and Type | Field and Description |
---|---|
protected NonLockingStringReader |
fakeReader
The StringReader that contains the fake characters
|
protected Reader |
reader
The original Reader that contains the real characters
|
protected boolean |
readingFakeCharacters
Flag indicating which reader is currently in use
|
Constructor and Description |
---|
FakingReader(Reader reader,
String fakeCharacters)
Constructor
|
protected Reader reader
protected NonLockingStringReader fakeReader
protected boolean readingFakeCharacters
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
Reader.close()
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
Reader.read(char[], int, int)
Copyright © 2016 The Apache Software Foundation. All rights reserved.