Package adalid.commons.velocity
Class VelocityFileResourceLoader.IndentationFilterInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- adalid.commons.velocity.VelocityFileResourceLoader.IndentationFilterInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- VelocityFileResourceLoader
public static class VelocityFileResourceLoader.IndentationFilterInputStream extends FilterInputStream
Upgrading from Velocity 2.0 to Velocity 2.1 (https://velocity.apache.org/engine/2.1/upgrading.html) The ResourceLoader class API has replaced InputStream getters by Reader getters: InputStream ResourceLoader.getResourceStream(String name) has been replaced by a Reader ResourceLoader.getResourceReader(String name, String encoding).
-
-
Constructor Summary
Constructors Constructor Description IndentationFilterInputStream(InputStream resourceStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmarkSupported()intread()intread(byte[] b)intread(byte[] b, int off, int len)-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Field Detail
-
line
protected String line
-
next
protected int next
-
eol
protected boolean eol
-
eof
protected boolean eof
-
-
Constructor Detail
-
IndentationFilterInputStream
public IndentationFilterInputStream(InputStream resourceStream)
-
-
Method Detail
-
read
public int read() throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
public int read(byte[] b) throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classFilterInputStream
-
-