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(org.smooks.api.ExecutionContext executionContext, String resourceName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputStreamgetDelegateOutputStream()protected OutputStreamgetOutputStream(String resourceName, org.smooks.api.ExecutionContext executionContext)Get anOutputStreamto the named Resource.protected OutputStreamopenOutputStream(AbstractOutputStreamResource resource, String resourceName, org.smooks.api.ExecutionContext executionContext)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
close, flush, write, write
-
-
-
-
Constructor Detail
-
ResourceOutputStream
public ResourceOutputStream(org.smooks.api.ExecutionContext executionContext, String resourceName)
-
-
Method Detail
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
getOutputStream
protected OutputStream getOutputStream(String resourceName, org.smooks.api.ExecutionContext executionContext) throws org.smooks.api.SmooksException
Get anOutputStreamto the named Resource.- Parameters:
resourceName- The resource name.executionContext- The current ExececutionContext.- Returns:
- An
OutputStreamto the named Resource. - Throws:
org.smooks.api.SmooksException- Unable to access OutputStream.
-
openOutputStream
protected OutputStream openOutputStream(AbstractOutputStreamResource resource, String resourceName, org.smooks.api.ExecutionContext executionContext)
-
getDelegateOutputStream
public OutputStream getDelegateOutputStream()
-
-