| java.lang.Object org.apache.tools.ant.util.OutputStreamFunneler
OutputStreamFunneler | public class OutputStreamFunneler (Code) | | Manages a set of OutputStream s to
write to a single underlying stream, which is
closed only when the last "funnel"
has been closed.
|
Method Summary | |
public synchronized OutputStream | getFunnelInstance() Get a "funnel" OutputStream instance to
write to this OutputStreamFunneler 's underlying
OutputStream . | public synchronized void | setTimeout(long timeoutMillis) Set the timeout for this OutputStreamFunneler . |
OutputStreamFunneler | public OutputStreamFunneler(OutputStream out)(Code) | | Create a new OutputStreamFunneler for
the specified OutputStream .
Parameters: out - OutputStream . |
OutputStreamFunneler | public OutputStreamFunneler(OutputStream out, long timeoutMillis)(Code) | | Create a new OutputStreamFunneler for
the specified OutputStream , with the
specified timeout value.
Parameters: out - OutputStream . Parameters: timeoutMillis - long . See Also: OutputStreamFunneler.setTimeout(long) |
getFunnelInstance | public synchronized OutputStream getFunnelInstance() throws IOException(Code) | | Get a "funnel" OutputStream instance to
write to this OutputStreamFunneler 's underlying
OutputStream .
OutputStream . throws: IOException - if unable to create the funnel. |
setTimeout | public synchronized void setTimeout(long timeoutMillis)(Code) | | Set the timeout for this OutputStreamFunneler .
This is the maximum time that may elapse between the closure
of the last "funnel" and the next call to
getOutputStream() without closing the
underlying stream.
Parameters: timeoutMillis - long timeout value. |
|
|