org.apache.tools.ant.util
Class OutputStreamFunneler
java.lang.Objectorg.apache.tools.ant.util.OutputStreamFunneler
public class OutputStreamFunneler
extends java.lang.Object
Manages a set of OutputStreams to
write to a single underlying stream, which is
closed only when the last "funnel"
has been closed.
OutputStreamFunneler(OutputStream out)- Create a new
OutputStreamFunneler for
the specified OutputStream.
|
OutputStreamFunneler(OutputStream out, long timeoutMillis)- Create a new
OutputStreamFunneler for
the specified OutputStream, with the
specified timeout value.
|
OutputStream | getFunnelInstance()- Get a "funnel"
OutputStream instance to
write to this OutputStreamFunneler's underlying
OutputStream.
|
void | setTimeout(long timeoutMillis)- Set the timeout for this
OutputStreamFunneler.
|
DEFAULT_TIMEOUT_MILLIS
public static final long DEFAULT_TIMEOUT_MILLIS
Default timeout.
OutputStreamFunneler
public OutputStreamFunneler(OutputStream out)
Create a new OutputStreamFunneler for
the specified OutputStream.
OutputStreamFunneler
public OutputStreamFunneler(OutputStream out,
long timeoutMillis) Create a new OutputStreamFunneler for
the specified OutputStream, with the
specified timeout value.
out - OutputStream.timeoutMillis - long.
getFunnelInstance
public OutputStream getFunnelInstance()
throws IOException Get a "funnel" OutputStream instance to
write to this OutputStreamFunneler's underlying
OutputStream.
setTimeout
public void setTimeout(long timeoutMillis)
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.
timeoutMillis - long timeout value.
Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.