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>
|
---|
7 | KeepAliveInputStream (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.util.KeepAliveInputStream 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="KeepAliveInputStream (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/JAXPUtils.html" title="class in org.apache.tools.ant.util"><B>PREV CLASS</B></A>
|
---|
53 | <A HREF="../../../../../org/apache/tools/ant/util/KeepAliveOutputStream.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="KeepAliveInputStream.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 | <A HREF="#fields_inherited_from_class_java.io.FilterInputStream">FIELD</A> | <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 KeepAliveInputStream</H2>
|
---|
87 | <PRE>
|
---|
88 | java.lang.Object
|
---|
89 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by">java.io.InputStream
|
---|
90 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by">java.io.FilterInputStream
|
---|
91 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.util.KeepAliveInputStream</B>
|
---|
92 | </PRE>
|
---|
93 | <HR>
|
---|
94 | <DL>
|
---|
95 | <DT>public class <B>KeepAliveInputStream</B><DT>extends java.io.FilterInputStream</DL>
|
---|
96 |
|
---|
97 | <P>
|
---|
98 | Class that can be used to wrap <tt>System.in</tt>
|
---|
99 | without getting anxious about any client closing the stream.
|
---|
100 |
|
---|
101 | <p>
|
---|
102 | In code-language it means that it is not necessary to do:
|
---|
103 | <pre>
|
---|
104 | if (out != System.in) {
|
---|
105 | in.close();
|
---|
106 | }
|
---|
107 | </pre>
|
---|
108 | </p>
|
---|
109 | <P>
|
---|
110 |
|
---|
111 | <P>
|
---|
112 | <DL>
|
---|
113 | <DT><B>Since:</B></DT>
|
---|
114 | <DD>Ant 1.6</DD>
|
---|
115 | </DL>
|
---|
116 | <HR>
|
---|
117 |
|
---|
118 | <P>
|
---|
119 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
120 |
|
---|
121 |
|
---|
122 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
123 |
|
---|
124 | <A NAME="field_summary"><!-- --></A>
|
---|
125 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
126 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
127 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
128 | <B>Field Summary</B></FONT></TD>
|
---|
129 | </TR>
|
---|
130 | </TABLE>
|
---|
131 | <A NAME="fields_inherited_from_class_java.io.FilterInputStream"><!-- --></A>
|
---|
132 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
133 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
134 | <TD><B>Fields inherited from class java.io.FilterInputStream</B></TD>
|
---|
135 | </TR>
|
---|
136 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
137 | <TD><CODE>in</CODE></TD>
|
---|
138 | </TR>
|
---|
139 | </TABLE>
|
---|
140 |
|
---|
141 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
142 |
|
---|
143 | <A NAME="constructor_summary"><!-- --></A>
|
---|
144 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
145 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
146 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
147 | <B>Constructor Summary</B></FONT></TD>
|
---|
148 | </TR>
|
---|
149 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
150 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/KeepAliveInputStream.html#KeepAliveInputStream(java.io.InputStream)">KeepAliveInputStream</A></B>(java.io.InputStream in)</CODE>
|
---|
151 |
|
---|
152 | <BR>
|
---|
153 | </TD>
|
---|
154 | </TR>
|
---|
155 | </TABLE>
|
---|
156 |
|
---|
157 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
158 |
|
---|
159 | <A NAME="method_summary"><!-- --></A>
|
---|
160 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
161 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
162 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
163 | <B>Method Summary</B></FONT></TD>
|
---|
164 | </TR>
|
---|
165 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
166 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
167 | <CODE> void</CODE></FONT></TD>
|
---|
168 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/KeepAliveInputStream.html#close()">close</A></B>()</CODE>
|
---|
169 |
|
---|
170 | <BR>
|
---|
171 | this method does nothing</TD>
|
---|
172 | </TR>
|
---|
173 | </TABLE>
|
---|
174 | <A NAME="methods_inherited_from_class_java.io.FilterInputStream"><!-- --></A>
|
---|
175 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
176 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
177 | <TD><B>Methods inherited from class java.io.FilterInputStream</B></TD>
|
---|
178 | </TR>
|
---|
179 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
180 | <TD><CODE>available, mark, markSupported, read, read, read, reset, skip</CODE></TD>
|
---|
181 | </TR>
|
---|
182 | </TABLE>
|
---|
183 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
184 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
185 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
186 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
187 | </TR>
|
---|
188 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
189 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
190 | </TR>
|
---|
191 | </TABLE>
|
---|
192 |
|
---|
193 | <P>
|
---|
194 |
|
---|
195 | <!-- ============ FIELD DETAIL =========== -->
|
---|
196 |
|
---|
197 |
|
---|
198 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
199 |
|
---|
200 | <A NAME="constructor_detail"><!-- --></A>
|
---|
201 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
202 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
203 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
204 | <B>Constructor Detail</B></FONT></TD>
|
---|
205 | </TR>
|
---|
206 | </TABLE>
|
---|
207 |
|
---|
208 | <A NAME="KeepAliveInputStream(java.io.InputStream)"><!-- --></A><H3>
|
---|
209 | KeepAliveInputStream</H3>
|
---|
210 | <PRE>
|
---|
211 | public <B>KeepAliveInputStream</B>(java.io.InputStream in)</PRE>
|
---|
212 | <DL>
|
---|
213 | </DL>
|
---|
214 |
|
---|
215 | <!-- ============ METHOD DETAIL ========== -->
|
---|
216 |
|
---|
217 | <A NAME="method_detail"><!-- --></A>
|
---|
218 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
219 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
220 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
221 | <B>Method Detail</B></FONT></TD>
|
---|
222 | </TR>
|
---|
223 | </TABLE>
|
---|
224 |
|
---|
225 | <A NAME="close()"><!-- --></A><H3>
|
---|
226 | close</H3>
|
---|
227 | <PRE>
|
---|
228 | public void <B>close</B>()
|
---|
229 | throws java.io.IOException</PRE>
|
---|
230 | <DL>
|
---|
231 | <DD>this method does nothing
|
---|
232 | <P>
|
---|
233 | <DD><DL>
|
---|
234 |
|
---|
235 | <DT><B>Throws:</B>
|
---|
236 | <DD><CODE>java.io.IOException</CODE></DL>
|
---|
237 | </DD>
|
---|
238 | </DL>
|
---|
239 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
240 | <HR>
|
---|
241 |
|
---|
242 |
|
---|
243 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
244 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
245 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
246 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
247 | <TR>
|
---|
248 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
249 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
250 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
251 | <TR ALIGN="center" VALIGN="top">
|
---|
252 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
253 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
254 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
255 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
256 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
257 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
258 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
259 | </TR>
|
---|
260 | </TABLE>
|
---|
261 | </TD>
|
---|
262 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
263 | </EM>
|
---|
264 | </TD>
|
---|
265 | </TR>
|
---|
266 |
|
---|
267 | <TR>
|
---|
268 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
269 | <A HREF="../../../../../org/apache/tools/ant/util/JAXPUtils.html" title="class in org.apache.tools.ant.util"><B>PREV CLASS</B></A>
|
---|
270 | <A HREF="../../../../../org/apache/tools/ant/util/KeepAliveOutputStream.html" title="class in org.apache.tools.ant.util"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
271 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
272 | <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
273 | <A HREF="KeepAliveInputStream.html" target="_top"><B>NO FRAMES</B></A>
|
---|
274 | <SCRIPT type="text/javascript">
|
---|
275 | <!--
|
---|
276 | if(window==top) {
|
---|
277 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
278 | }
|
---|
279 | //-->
|
---|
280 | </SCRIPT>
|
---|
281 | <NOSCRIPT>
|
---|
282 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
283 | </NOSCRIPT>
|
---|
284 |
|
---|
285 | </FONT></TD>
|
---|
286 | </TR>
|
---|
287 | <TR>
|
---|
288 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
289 | SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_java.io.FilterInputStream">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
290 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
291 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
292 | </TR>
|
---|
293 | </TABLE>
|
---|
294 | <A NAME="skip-navbar_bottom"></A>
|
---|
295 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
296 |
|
---|
297 | <HR>
|
---|
298 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
299 | </BODY>
|
---|
300 | </HTML>
|
---|