public class MockReaderWrapper extends Reader
| Constructor and Description |
|---|
MockReaderWrapper(Random random,
Reader in) |
| Modifier and Type | Method and 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 Closeableclose in interface AutoCloseableclose 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-2016 Apache Software Foundation. All Rights Reserved.