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 Fri Feb 01 12:53:21 NZDT 2008 -->
|
---|
6 | <TITLE>
|
---|
7 | TeeOutputStream (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">
|
---|
15 | function 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> </TD>
|
---|
36 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
37 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
38 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
39 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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 | <A HREF="../../../../../org/apache/tools/ant/util/TaskLogger.html" title="class in org.apache.tools.ant.util"><B>PREV CLASS</B></A>
|
---|
53 | <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>
|
---|
56 | <A HREF="TeeOutputStream.html" target="_top"><B>NO FRAMES</B></A>
|
---|
57 | <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
73 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
74 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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">
|
---|
84 | org.apache.tools.ant.util</FONT>
|
---|
85 | <BR>
|
---|
86 | Class TeeOutputStream</H2>
|
---|
87 | <PRE>
|
---|
88 | java.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>
|
---|
97 | A 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 left,
|
---|
120 | java.io.OutputStream right)</CODE>
|
---|
121 |
|
---|
122 | <BR>
|
---|
123 | Constructor for TeeOutputStream.</TD>
|
---|
124 | </TR>
|
---|
125 | </TABLE>
|
---|
126 |
|
---|
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> 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 | 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> 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 | 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> void</CODE></FONT></TD>
|
---|
154 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/TeeOutputStream.html#write(byte[])">write</A></B>(byte[] b)</CODE>
|
---|
155 |
|
---|
156 | <BR>
|
---|
157 | 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> 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[] b,
|
---|
163 | int off,
|
---|
164 | int len)</CODE>
|
---|
165 |
|
---|
166 | <BR>
|
---|
167 | 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> void</CODE></FONT></TD>
|
---|
172 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/TeeOutputStream.html#write(int)">write</A></B>(int b)</CODE>
|
---|
173 |
|
---|
174 | <BR>
|
---|
175 | Write a byte to both output streams.</TD>
|
---|
176 | </TR>
|
---|
177 | </TABLE>
|
---|
178 | <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 |
|
---|
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>
|
---|
204 | TeeOutputStream</H3>
|
---|
205 | <PRE>
|
---|
206 | public <B>TeeOutputStream</B>(java.io.OutputStream left,
|
---|
207 | java.io.OutputStream 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>
|
---|
224 | close</H3>
|
---|
225 | <PRE>
|
---|
226 | public 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>
|
---|
240 | flush</H3>
|
---|
241 | <PRE>
|
---|
242 | public 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>
|
---|
256 | write</H3>
|
---|
257 | <PRE>
|
---|
258 | public void <B>write</B>(byte[] 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>
|
---|
272 | write</H3>
|
---|
273 | <PRE>
|
---|
274 | public void <B>write</B>(byte[] b,
|
---|
275 | int off,
|
---|
276 | int 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>
|
---|
290 | write</H3>
|
---|
291 | <PRE>
|
---|
292 | public void <B>write</B>(int 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> </TD>
|
---|
317 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
318 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
319 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
320 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
321 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
322 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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 | <A HREF="../../../../../org/apache/tools/ant/util/TaskLogger.html" title="class in org.apache.tools.ant.util"><B>PREV CLASS</B></A>
|
---|
334 | <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>
|
---|
337 | <A HREF="TeeOutputStream.html" target="_top"><B>NO FRAMES</B></A>
|
---|
338 | <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
354 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
355 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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>
|
---|
362 | Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.
|
---|
363 | </BODY>
|
---|
364 | </HTML>
|
---|