Package nl.nn.adapterframework.util
Class EncapsulatingReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.FilterReader
-
- nl.nn.adapterframework.util.EncapsulatingReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
public class EncapsulatingReader extends FilterReader
Reader that encapsulates a file within a prefix and a postfix.- Since:
- 4.3
- Author:
- Gerrit van Brakel
-
-
Field Summary
-
Fields inherited from class java.io.FilterReader
in
-
-
Constructor Summary
Constructors Constructor Description EncapsulatingReader(Reader in, String prefix, String postfix)
EncapsulatingReader(Reader in, String prefix, String postfix, boolean encodePrintable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
int
read(char[] cbuf, int off, int len)
boolean
ready()
void
reset()
-
Methods inherited from class java.io.FilterReader
close, mark, markSupported, skip
-
Methods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
-
-
-
Method Detail
-
read
public int read() throws IOException
- Overrides:
read
in classFilterReader
- Throws:
IOException
-
read
public int read(char[] cbuf, int off, int len) throws IOException
- Overrides:
read
in classFilterReader
- Throws:
IOException
-
ready
public boolean ready() throws IOException
- Overrides:
ready
in classFilterReader
- Throws:
IOException
-
reset
public void reset() throws IOException
- Overrides:
reset
in classFilterReader
- Throws:
IOException
-
-