org.apache.tools.ant.util
public class OutputStreamFunneler extends Object
OutputStream
s to
write to a single underlying stream, which is
closed only when the last "funnel"
has been closed.
Field Summary | |
---|---|
static long | DEFAULT_TIMEOUT_MILLIS
Default timeout. |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 .
|
See Also: OutputStreamFunneler
OutputStreamFunneler
for
the specified OutputStream
.Parameters: out OutputStream
.
OutputStreamFunneler
for
the specified OutputStream
, with the
specified timeout value.Parameters: out OutputStream
. timeoutMillis long
.
See Also: OutputStreamFunneler
OutputStream
instance to
write to this OutputStreamFunneler
's underlying
OutputStream
.Returns: OutputStream
.
Throws: IOException if unable to create the funnel.
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.