railo.commons.io.auto
Class AutoCloseOutputStream
java.lang.Object
java.io.OutputStream
railo.commons.io.auto.AutoCloseOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public final class AutoCloseOutputStream
- extends OutputStream
Close the Stream automaticlly when object will destroyed by the garbage
AutoCloseOutputStream
public AutoCloseOutputStream(OutputStream os)
- constructor of the class
- Parameters:
os
-
write
public void write(int b)
throws IOException
- Specified by:
write
in class OutputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class OutputStream
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Overrides:
flush
in class OutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write
in class OutputStream
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Overrides:
write
in class OutputStream
- Throws:
IOException
finalize
public void finalize()
throws Throwable
- Overrides:
finalize
in class Object
- Throws:
Throwable
Copyright © 2012 Railo