Package org.smooks.io
Class ResourceOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.smooks.io.ResourceOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class ResourceOutputStream extends OutputStream
-
-
Constructor Summary
Constructors Constructor Description ResourceOutputStream(ExecutionContext executionContext, String resourceName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputStream
getDelegateOutputStream()
protected OutputStream
getOutputStream(String resourceName, ExecutionContext executionContext)
Get anOutputStream
to the named Resource.protected OutputStream
openOutputStream(AbstractOutputStreamResource resource, String resourceName, ExecutionContext executionContext)
void
write(int b)
-
Methods inherited from class java.io.OutputStream
close, flush, write, write
-
-
-
-
Constructor Detail
-
ResourceOutputStream
public ResourceOutputStream(ExecutionContext executionContext, String resourceName)
-
-
Method Detail
-
write
public void write(int b) throws IOException
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
getOutputStream
protected OutputStream getOutputStream(String resourceName, ExecutionContext executionContext) throws SmooksException
Get anOutputStream
to the named Resource.- Parameters:
resourceName
- The resource name.executionContext
- The current ExececutionContext.- Returns:
- An
OutputStream
to the named Resource. - Throws:
SmooksException
- Unable to access OutputStream.
-
openOutputStream
protected OutputStream openOutputStream(AbstractOutputStreamResource resource, String resourceName, ExecutionContext executionContext)
-
getDelegateOutputStream
public OutputStream getDelegateOutputStream()
-
-