source: release-kits/lirk3/resources/gs3-release-maker/ant/docs/manual/api/org/apache/tools/ant/util/TeeOutputStream.html@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 13.1 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<!-- Generated by javadoc (build 1.4.2_13) on Mon Oct 01 14:33:35 NZST 2007 -->
6<TITLE>
7TeeOutputStream (Apache Ant API)
8</TITLE>
9
10<META NAME="keywords" CONTENT="org.apache.tools.ant.util.TeeOutputStream class">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17 parent.document.title="TeeOutputStream (Apache Ant API)";
18}
19</SCRIPT>
20
21</HEAD>
22
23<BODY BGCOLOR="white" onload="windowTitle();">
24
25
26<!-- ========= START OF TOP NAVBAR ======= -->
27<A NAME="navbar_top"><!-- --></A>
28<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30<TR>
31<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32<A NAME="navbar_top_firstrow"><!-- --></A>
33<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34 <TR ALIGN="center" VALIGN="top">
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
42 </TR>
43</TABLE>
44</TD>
45<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
46</EM>
47</TD>
48</TR>
49
50<TR>
51<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
52&nbsp;<A HREF="../../../../../org/apache/tools/ant/util/TaskLogger.html" title="class in org.apache.tools.ant.util"><B>PREV CLASS</B></A>&nbsp;
53&nbsp;<A HREF="../../../../../org/apache/tools/ant/util/UnPackageNameMapper.html" title="class in org.apache.tools.ant.util"><B>NEXT CLASS</B></A></FONT></TD>
54<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
55 <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
56&nbsp;<A HREF="TeeOutputStream.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
57&nbsp;<SCRIPT type="text/javascript">
58 <!--
59 if(window==top) {
60 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
61 }
62 //-->
63</SCRIPT>
64<NOSCRIPT>
65 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
66</NOSCRIPT>
67
68</FONT></TD>
69</TR>
70<TR>
71<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
72 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
73<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
74DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
75</TR>
76</TABLE>
77<A NAME="skip-navbar_top"></A>
78<!-- ========= END OF TOP NAVBAR ========= -->
79
80<HR>
81<!-- ======== START OF CLASS DATA ======== -->
82<H2>
83<FONT SIZE="-1">
84org.apache.tools.ant.util</FONT>
85<BR>
86Class TeeOutputStream</H2>
87<PRE>
88java.lang.Object
89 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by">java.io.OutputStream
90 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.util.TeeOutputStream</B>
91</PRE>
92<HR>
93<DL>
94<DT>public class <B>TeeOutputStream</B><DT>extends java.io.OutputStream</DL>
95
96<P>
97A simple T-piece to replicate an output stream into two separate streams
98<P>
99
100<P>
101<HR>
102
103<P>
104<!-- ======== NESTED CLASS SUMMARY ======== -->
105
106
107<!-- =========== FIELD SUMMARY =========== -->
108
109
110<!-- ======== CONSTRUCTOR SUMMARY ======== -->
111
112<A NAME="constructor_summary"><!-- --></A>
113<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
114<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
115<TD COLSPAN=2><FONT SIZE="+2">
116<B>Constructor Summary</B></FONT></TD>
117</TR>
118<TR BGCOLOR="white" CLASS="TableRowColor">
119<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/TeeOutputStream.html#TeeOutputStream(java.io.OutputStream, java.io.OutputStream)">TeeOutputStream</A></B>(java.io.OutputStream&nbsp;left,
120 java.io.OutputStream&nbsp;right)</CODE>
121
122<BR>
123&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor for TeeOutputStream.</TD>
124</TR>
125</TABLE>
126&nbsp;
127<!-- ========== METHOD SUMMARY =========== -->
128
129<A NAME="method_summary"><!-- --></A>
130<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
131<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
132<TD COLSPAN=2><FONT SIZE="+2">
133<B>Method Summary</B></FONT></TD>
134</TR>
135<TR BGCOLOR="white" CLASS="TableRowColor">
136<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
137<CODE>&nbsp;void</CODE></FONT></TD>
138<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/TeeOutputStream.html#close()">close</A></B>()</CODE>
139
140<BR>
141&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Close both output streams.</TD>
142</TR>
143<TR BGCOLOR="white" CLASS="TableRowColor">
144<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
145<CODE>&nbsp;void</CODE></FONT></TD>
146<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/TeeOutputStream.html#flush()">flush</A></B>()</CODE>
147
148<BR>
149&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flush both output streams.</TD>
150</TR>
151<TR BGCOLOR="white" CLASS="TableRowColor">
152<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
153<CODE>&nbsp;void</CODE></FONT></TD>
154<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/TeeOutputStream.html#write(byte[])">write</A></B>(byte[]&nbsp;b)</CODE>
155
156<BR>
157&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a byte array to both output streams.</TD>
158</TR>
159<TR BGCOLOR="white" CLASS="TableRowColor">
160<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
161<CODE>&nbsp;void</CODE></FONT></TD>
162<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/TeeOutputStream.html#write(byte[], int, int)">write</A></B>(byte[]&nbsp;b,
163 int&nbsp;off,
164 int&nbsp;len)</CODE>
165
166<BR>
167&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a byte array to both output streams.</TD>
168</TR>
169<TR BGCOLOR="white" CLASS="TableRowColor">
170<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
171<CODE>&nbsp;void</CODE></FONT></TD>
172<TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/TeeOutputStream.html#write(int)">write</A></B>(int&nbsp;b)</CODE>
173
174<BR>
175&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a byte to both output streams.</TD>
176</TR>
177</TABLE>
178&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
179<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
180<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
181<TD><B>Methods inherited from class java.lang.Object</B></TD>
182</TR>
183<TR BGCOLOR="white" CLASS="TableRowColor">
184<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
185</TR>
186</TABLE>
187&nbsp;
188<P>
189
190<!-- ============ FIELD DETAIL =========== -->
191
192
193<!-- ========= CONSTRUCTOR DETAIL ======== -->
194
195<A NAME="constructor_detail"><!-- --></A>
196<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
197<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
198<TD COLSPAN=1><FONT SIZE="+2">
199<B>Constructor Detail</B></FONT></TD>
200</TR>
201</TABLE>
202
203<A NAME="TeeOutputStream(java.io.OutputStream, java.io.OutputStream)"><!-- --></A><H3>
204TeeOutputStream</H3>
205<PRE>
206public <B>TeeOutputStream</B>(java.io.OutputStream&nbsp;left,
207 java.io.OutputStream&nbsp;right)</PRE>
208<DL>
209<DD>Constructor for TeeOutputStream.
210<P>
211<DT><B>Parameters:</B><DD><CODE>left</CODE> - one of the output streams.<DD><CODE>right</CODE> - the other output stream.</DL>
212
213<!-- ============ METHOD DETAIL ========== -->
214
215<A NAME="method_detail"><!-- --></A>
216<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
217<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
218<TD COLSPAN=1><FONT SIZE="+2">
219<B>Method Detail</B></FONT></TD>
220</TR>
221</TABLE>
222
223<A NAME="close()"><!-- --></A><H3>
224close</H3>
225<PRE>
226public void <B>close</B>()
227 throws java.io.IOException</PRE>
228<DL>
229<DD>Close both output streams.
230<P>
231<DD><DL>
232
233<DT><B>Throws:</B>
234<DD><CODE>java.io.IOException</CODE> - on error.</DL>
235</DD>
236</DL>
237<HR>
238
239<A NAME="flush()"><!-- --></A><H3>
240flush</H3>
241<PRE>
242public void <B>flush</B>()
243 throws java.io.IOException</PRE>
244<DL>
245<DD>Flush both output streams.
246<P>
247<DD><DL>
248
249<DT><B>Throws:</B>
250<DD><CODE>java.io.IOException</CODE> - on error</DL>
251</DD>
252</DL>
253<HR>
254
255<A NAME="write(byte[])"><!-- --></A><H3>
256write</H3>
257<PRE>
258public void <B>write</B>(byte[]&nbsp;b)
259 throws java.io.IOException</PRE>
260<DL>
261<DD>Write a byte array to both output streams.
262<P>
263<DD><DL>
264<DT><B>Parameters:</B><DD><CODE>b</CODE> - an array of bytes.
265<DT><B>Throws:</B>
266<DD><CODE>java.io.IOException</CODE> - on error.</DL>
267</DD>
268</DL>
269<HR>
270
271<A NAME="write(byte[], int, int)"><!-- --></A><H3>
272write</H3>
273<PRE>
274public void <B>write</B>(byte[]&nbsp;b,
275 int&nbsp;off,
276 int&nbsp;len)
277 throws java.io.IOException</PRE>
278<DL>
279<DD>Write a byte array to both output streams.
280<P>
281<DD><DL>
282<DT><B>Parameters:</B><DD><CODE>b</CODE> - the data.<DD><CODE>off</CODE> - the start offset in the data.<DD><CODE>len</CODE> - the number of bytes to write.
283<DT><B>Throws:</B>
284<DD><CODE>java.io.IOException</CODE> - on error.</DL>
285</DD>
286</DL>
287<HR>
288
289<A NAME="write(int)"><!-- --></A><H3>
290write</H3>
291<PRE>
292public void <B>write</B>(int&nbsp;b)
293 throws java.io.IOException</PRE>
294<DL>
295<DD>Write a byte to both output streams.
296<P>
297<DD><DL>
298<DT><B>Parameters:</B><DD><CODE>b</CODE> - the byte to write.
299<DT><B>Throws:</B>
300<DD><CODE>java.io.IOException</CODE> - on error.</DL>
301</DD>
302</DL>
303<!-- ========= END OF CLASS DATA ========= -->
304<HR>
305
306
307<!-- ======= START OF BOTTOM NAVBAR ====== -->
308<A NAME="navbar_bottom"><!-- --></A>
309<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
310<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
311<TR>
312<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
313<A NAME="navbar_bottom_firstrow"><!-- --></A>
314<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
315 <TR ALIGN="center" VALIGN="top">
316 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
317 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
318 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
319 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
320 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
321 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
322 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
323 </TR>
324</TABLE>
325</TD>
326<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
327</EM>
328</TD>
329</TR>
330
331<TR>
332<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
333&nbsp;<A HREF="../../../../../org/apache/tools/ant/util/TaskLogger.html" title="class in org.apache.tools.ant.util"><B>PREV CLASS</B></A>&nbsp;
334&nbsp;<A HREF="../../../../../org/apache/tools/ant/util/UnPackageNameMapper.html" title="class in org.apache.tools.ant.util"><B>NEXT CLASS</B></A></FONT></TD>
335<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
336 <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
337&nbsp;<A HREF="TeeOutputStream.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
338&nbsp;<SCRIPT type="text/javascript">
339 <!--
340 if(window==top) {
341 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
342 }
343 //-->
344</SCRIPT>
345<NOSCRIPT>
346 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
347</NOSCRIPT>
348
349</FONT></TD>
350</TR>
351<TR>
352<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
353 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
354<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
355DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
356</TR>
357</TABLE>
358<A NAME="skip-navbar_bottom"></A>
359<!-- ======== END OF BOTTOM NAVBAR ======= -->
360
361<HR>
362Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
363</BODY>
364</HTML>
Note: See TracBrowser for help on using the repository browser.