Package org.apache.velocity.tools.view
Class ImportSupport.SafeClosingHttpURLConnectionReader
- java.lang.Object
-
- java.io.Reader
-
- org.apache.velocity.tools.view.ImportSupport.SafeClosingHttpURLConnectionReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
- Enclosing class:
- ImportSupport
protected static class ImportSupport.SafeClosingHttpURLConnectionReader extends Reader
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidmark(int readAheadLimit)booleanmarkSupported()intread()intread(char[] buf)intread(char[] buf, int off, int len)booleanready()voidreset()longskip(long n)-
Methods inherited from class java.io.Reader
nullReader, read, transferTo
-
-
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classReader- Throws:
IOException
-
mark
public void mark(int readAheadLimit) throws IOException- Overrides:
markin classReader- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classReader
-
read
public int read() throws IOException- Overrides:
readin classReader- Throws:
IOException
-
read
public int read(char[] buf) throws IOException- Overrides:
readin classReader- Throws:
IOException
-
read
public int read(char[] buf, int off, int len) throws IOException- Specified by:
readin classReader- Throws:
IOException
-
ready
public boolean ready() throws IOException- Overrides:
readyin classReader- Throws:
IOException
-
reset
public void reset() throws IOException- Overrides:
resetin classReader- Throws:
IOException
-
skip
public long skip(long n) throws IOException- Overrides:
skipin classReader- Throws:
IOException
-
-