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 Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionReader.close()public int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOExceptionReader.read(char[], int, int)Copyright © 2016 The Apache Software Foundation. All rights reserved.