railo.commons.io.res.util
Class ResourceOutputStream
java.lang.Object
java.io.OutputStream
railo.commons.io.res.util.ResourceOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
- Direct Known Subclasses:
- FTPResourceOutputStream
public class ResourceOutputStream
- extends OutputStream
ResourceOutputStream
public ResourceOutputStream(Resource res,
OutputStream os)
- Constructor of the class
- Parameters:
res
- 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
getOutputStream
public OutputStream getOutputStream()
- Returns:
- the os
getResource
public Resource getResource()
- Returns:
- the res
Copyright © 2012 Railo