public class TokenReplacingReader extends Reader
String.replace(char, char) method.
Based on original code by Oleg Varaksin (ovaraksin@googlemail.com), the license of which is copied above. This
version resolves tokens to Reader instances.| Constructor and Description |
|---|
TokenReplacingReader(TokenResolver<Reader> resolver,
Reader source,
String start,
String end) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(char[] buffer) |
int |
read(char[] buffer,
int offset,
int length) |
boolean |
ready() |
void |
reset() |
long |
skip(long n) |
public TokenReplacingReader(TokenResolver<Reader> resolver, Reader source, String start, String end)
public int read()
throws IOException
read in class ReaderIOExceptionpublic int read(char[] buffer)
throws IOException
read in class ReaderIOExceptionpublic int read(char[] buffer,
int offset,
int length)
throws IOException
read in class ReaderIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionpublic boolean ready()
throws IOException
ready in class ReaderIOExceptionpublic boolean markSupported()
markSupported in class Readerpublic long skip(long n)
throws IOException
skip in class ReaderIOExceptionpublic void mark(int readAheadLimit)
throws IOException
mark in class ReaderIOExceptionpublic void reset()
throws IOException
reset in class ReaderIOExceptionCopyright © 2018 The International Consortium of Investigative Journalists. All rights reserved.