Closeable
, AutoCloseable
, Readable
public 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 AutoCloseable
close
in interface Closeable
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-2018 Apache Software Foundation. All Rights Reserved.