| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.util.OutputStreamFunneler
public class OutputStreamFunneler
Manages a set of OutputStreams to
 write to a single underlying stream, which is
 closed only when the last "funnel"
 has been closed.
| Field Summary | |
|---|---|
| static long | DEFAULT_TIMEOUT_MILLISDefault timeout. | 
| Constructor Summary | |
|---|---|
| OutputStreamFunneler(java.io.OutputStream out)Create a new OutputStreamFunnelerfor
 the specifiedOutputStream. | |
| OutputStreamFunneler(java.io.OutputStream out,
                     long timeoutMillis)Create a new OutputStreamFunnelerfor
 the specifiedOutputStream, with the
 specified timeout value. | |
| Method Summary | |
|---|---|
|  java.io.OutputStream | getFunnelInstance()Get a "funnel" OutputStreaminstance to
 write to thisOutputStreamFunneler's underlyingOutputStream. | 
|  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(long), 
Constant Field Values| Constructor 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(long)| 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 - if unable to create the funnel.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||