Package slash.common.io
Class TokenReplacingReader
java.lang.Object
java.io.Reader
slash.common.io.TokenReplacingReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
A reader that replaces tokens.
Based on http://tutorials.jenkov.com/java-howto/replace-strings-in-streams-arrays-files.html
- Author:
- Jakob Jenkov
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.Reader
nullReader, read, transferTo
-
Constructor Details
-
TokenReplacingReader
-
-
Method Details
-
read
-
read
- Overrides:
readin classReader- Throws:
IOException
-
read
- Specified by:
readin classReader- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classReader- Throws:
IOException
-
skip
public long skip(long n) -
ready
- Overrides:
readyin classReader- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classReader
-
mark
public void mark(int readAheadLimit) -
reset
public void reset()
-