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 Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
public boolean markSupported()
markSupported
in class Reader
public static boolean isMyEvilException(Throwable t)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.