mirror of
https://github.com/corda/corda.git
synced 2025-04-13 06:03:13 +00:00
add Reader.mark/markSupported/reset
This commit is contained in:
parent
b57e734ceb
commit
3a2a46499e
@ -28,5 +28,17 @@ public abstract class Reader {
|
||||
public abstract int read(char[] buffer, int offset, int length)
|
||||
throws IOException;
|
||||
|
||||
public boolean markSupported() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void mark(int readAheadLimit) throws IOException {
|
||||
throw new IOException("mark not supported");
|
||||
}
|
||||
|
||||
public void reset() throws IOException {
|
||||
throw new IOException("reset not supported");
|
||||
}
|
||||
|
||||
public abstract void close() throws IOException;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user