public class DeferredForwardOutputStream extends OutputStream
OutputStream
that forwards its
write invokations to another stream. It's deferred because
it supports accepting write operations even before
the delegate stream has been provided, applying all
its contents once it becomes available. Any write operations
received after the delegate was provided are dispatched
directlyConstructor and Description |
---|
DeferredForwardOutputStream() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
setDelegate(OutputStream delegate) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flush, write
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void setDelegate(OutputStream delegate) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.