public class RewindableReader
extends java.io.Reader
Reader and
allows to rewind these. As soon as more than size characters have been read,
rewinding fails.| Modifier and Type | Field and Description |
|---|---|
protected char[] |
buffer |
protected int |
pos |
protected boolean |
rewindable |
protected java.io.PushbackReader |
wrappedReader |
| Constructor and Description |
|---|
RewindableReader(java.io.Reader input,
int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getCurrentRewindableCapacity() |
int |
getRewindBufferSize() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
void |
reset() |
void |
rewind()
Rewinds the reader such that the initial characters are returned when invoking read().
|
long |
skip(long n) |
protected java.io.PushbackReader wrappedReader
protected char[] buffer
protected int pos
protected boolean rewindable
public int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOExceptionpublic void mark(int readlimit)
throws java.io.IOException
mark in class java.io.Readerjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.Readerpublic void reset()
throws java.io.IOException
reset in class java.io.Readerjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.Readerjava.io.IOExceptionpublic void rewind()
throws java.io.IOException
java.io.IOExceptionpublic int getRewindBufferSize()
public int getCurrentRewindableCapacity()
Copyright © 2014–2022 Camunda Services GmbH. All rights reserved.