Closeable, AutoCloseable, Readablepublic class MockReaderWrapper extends Reader
| Constructor | Description |
|---|---|
MockReaderWrapper(Random random,
Reader in) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
static boolean |
isMyEvilException(Throwable t) |
|
boolean |
markSupported() |
|
int |
read(char[] cbuf,
int off,
int len) |
|
boolean |
ready() |
|
void |
throwExcAfterChar(int charUpto) |
Throw an exception after reading this many chars.
|
void |
throwExcNext() |
public void throwExcAfterChar(int charUpto)
public void throwExcNext()
public void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class ReaderIOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOExceptionpublic boolean markSupported()
markSupported in class Readerpublic static boolean isMyEvilException(Throwable t)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.