railo.commons.io.auto
Class AutoCloseReader
java.lang.Object
java.io.Reader
railo.commons.io.auto.AutoCloseReader
- All Implemented Interfaces:
- Closeable, Readable
public final class AutoCloseReader
- extends Reader
Close the Reader automaticlly when object will destroyed by the garbage
AutoCloseReader
public AutoCloseReader(Reader reader)
- constructor of the class
- Parameters:
reader
-
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Reader
- Throws:
IOException
mark
public void mark(int readAheadLimit)
throws IOException
- Overrides:
mark
in class Reader
- Throws:
IOException
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class Reader
read
public int read()
throws IOException
- Overrides:
read
in class Reader
- Throws:
IOException
read
public int read(char[] cbuf,
int off,
int len)
throws IOException
- Specified by:
read
in class Reader
- Throws:
IOException
read
public int read(char[] cbuf)
throws IOException
- Overrides:
read
in class Reader
- Throws:
IOException
ready
public boolean ready()
throws IOException
- Overrides:
ready
in class Reader
- Throws:
IOException
reset
public void reset()
throws IOException
- Overrides:
reset
in class Reader
- Throws:
IOException
skip
public long skip(long n)
throws IOException
- Overrides:
skip
in class Reader
- Throws:
IOException
finalize
public void finalize()
throws Throwable
- Overrides:
finalize
in class Object
- Throws:
Throwable
Copyright © 2012 Railo