|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.util.OutputStreamFunneler
Manages a set of 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(java.io.OutputStream out)
Create a new OutputStreamFunneler for
the specified OutputStream . |
|
OutputStreamFunneler(java.io.OutputStream out,
long timeoutMillis)
Create a new OutputStreamFunneler for
the specified OutputStream , with the
specified timeout value. |
Method Summary | |
java.io.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 . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long DEFAULT_TIMEOUT_MILLIS
#setTimeout()
,
Constant Field ValuesConstructor Detail |
public OutputStreamFunneler(java.io.OutputStream out)
OutputStreamFunneler
for
the specified OutputStream
.
out
- OutputStream
.public OutputStreamFunneler(java.io.OutputStream out, long timeoutMillis)
OutputStreamFunneler
for
the specified OutputStream
, with the
specified timeout value.
out
- OutputStream
.timeoutMillis
- long
.#setTimeout()
Method Detail |
public void setTimeout(long timeoutMillis)
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.public java.io.OutputStream getFunnelInstance() throws java.io.IOException
OutputStream
instance to
write to this OutputStreamFunneler
's underlying
OutputStream
.
OutputStream
.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |