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:16 NZST 2007 -->
|
---|
6 | <TITLE>
|
---|
7 | TailFilter (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.filters.TailFilter 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="TailFilter (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/filters/TabsToSpaces.html" title="class in org.apache.tools.ant.filters"><B>PREV CLASS</B></A>
|
---|
53 | <A HREF="../../../../../org/apache/tools/ant/filters/TokenFilter.html" title="class in org.apache.tools.ant.filters"><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="TailFilter.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.FilterReader">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.filters</FONT>
|
---|
85 | <BR>
|
---|
86 | Class TailFilter</H2>
|
---|
87 | <PRE>
|
---|
88 | java.lang.Object
|
---|
89 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by">java.io.Reader
|
---|
90 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by">java.io.FilterReader
|
---|
91 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../org/apache/tools/ant/filters/BaseFilterReader.html" title="class in org.apache.tools.ant.filters">org.apache.tools.ant.filters.BaseFilterReader</A>
|
---|
92 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../org/apache/tools/ant/filters/BaseParamFilterReader.html" title="class in org.apache.tools.ant.filters">org.apache.tools.ant.filters.BaseParamFilterReader</A>
|
---|
93 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.filters.TailFilter</B>
|
---|
94 | </PRE>
|
---|
95 | <DL>
|
---|
96 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/tools/ant/filters/ChainableReader.html" title="interface in org.apache.tools.ant.filters">ChainableReader</A>, <A HREF="../../../../../org/apache/tools/ant/types/Parameterizable.html" title="interface in org.apache.tools.ant.types">Parameterizable</A></DD>
|
---|
97 | </DL>
|
---|
98 | <HR>
|
---|
99 | <DL>
|
---|
100 | <DT>public final class <B>TailFilter</B><DT>extends <A HREF="../../../../../org/apache/tools/ant/filters/BaseParamFilterReader.html" title="class in org.apache.tools.ant.filters">BaseParamFilterReader</A><DT>implements <A HREF="../../../../../org/apache/tools/ant/filters/ChainableReader.html" title="interface in org.apache.tools.ant.filters">ChainableReader</A></DL>
|
---|
101 |
|
---|
102 | <P>
|
---|
103 | Reads the last <code>n</code> lines of a stream. (Default is last10 lines.)
|
---|
104 |
|
---|
105 | Example:
|
---|
106 |
|
---|
107 | <pre><tailfilter lines="3"/></pre>
|
---|
108 |
|
---|
109 | Or:
|
---|
110 |
|
---|
111 | <pre><filterreader classname="org.apache.tools.ant.filters.TailFilter">
|
---|
112 | <param name="lines" value="3"/>
|
---|
113 | </filterreader></pre>
|
---|
114 | <P>
|
---|
115 |
|
---|
116 | <P>
|
---|
117 | <HR>
|
---|
118 |
|
---|
119 | <P>
|
---|
120 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
121 |
|
---|
122 |
|
---|
123 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
124 |
|
---|
125 | <A NAME="field_summary"><!-- --></A>
|
---|
126 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
127 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
128 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
129 | <B>Field Summary</B></FONT></TD>
|
---|
130 | </TR>
|
---|
131 | </TABLE>
|
---|
132 | <A NAME="fields_inherited_from_class_java.io.FilterReader"><!-- --></A>
|
---|
133 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
134 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
135 | <TD><B>Fields inherited from class java.io.FilterReader</B></TD>
|
---|
136 | </TR>
|
---|
137 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
138 | <TD><CODE>in</CODE></TD>
|
---|
139 | </TR>
|
---|
140 | </TABLE>
|
---|
141 | <A NAME="fields_inherited_from_class_java.io.Reader"><!-- --></A>
|
---|
142 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
143 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
144 | <TD><B>Fields inherited from class java.io.Reader</B></TD>
|
---|
145 | </TR>
|
---|
146 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
147 | <TD><CODE>lock</CODE></TD>
|
---|
148 | </TR>
|
---|
149 | </TABLE>
|
---|
150 |
|
---|
151 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
152 |
|
---|
153 | <A NAME="constructor_summary"><!-- --></A>
|
---|
154 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
155 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
156 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
157 | <B>Constructor Summary</B></FONT></TD>
|
---|
158 | </TR>
|
---|
159 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
160 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/filters/TailFilter.html#TailFilter()">TailFilter</A></B>()</CODE>
|
---|
161 |
|
---|
162 | <BR>
|
---|
163 | Constructor for "dummy" instances.</TD>
|
---|
164 | </TR>
|
---|
165 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
166 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/filters/TailFilter.html#TailFilter(java.io.Reader)">TailFilter</A></B>(java.io.Reader in)</CODE>
|
---|
167 |
|
---|
168 | <BR>
|
---|
169 | Creates a new filtered reader.</TD>
|
---|
170 | </TR>
|
---|
171 | </TABLE>
|
---|
172 |
|
---|
173 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
174 |
|
---|
175 | <A NAME="method_summary"><!-- --></A>
|
---|
176 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
177 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
178 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
179 | <B>Method Summary</B></FONT></TD>
|
---|
180 | </TR>
|
---|
181 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
182 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
183 | <CODE> java.io.Reader</CODE></FONT></TD>
|
---|
184 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/filters/TailFilter.html#chain(java.io.Reader)">chain</A></B>(java.io.Reader rdr)</CODE>
|
---|
185 |
|
---|
186 | <BR>
|
---|
187 | Creates a new TailFilter using the passed in
|
---|
188 | Reader for instantiation.</TD>
|
---|
189 | </TR>
|
---|
190 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
191 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
192 | <CODE> int</CODE></FONT></TD>
|
---|
193 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/filters/TailFilter.html#read()">read</A></B>()</CODE>
|
---|
194 |
|
---|
195 | <BR>
|
---|
196 | Returns the next character in the filtered stream.</TD>
|
---|
197 | </TR>
|
---|
198 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
199 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
200 | <CODE> void</CODE></FONT></TD>
|
---|
201 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/filters/TailFilter.html#setLines(long)">setLines</A></B>(long lines)</CODE>
|
---|
202 |
|
---|
203 | <BR>
|
---|
204 | Sets the number of lines to be returned in the filtered stream.</TD>
|
---|
205 | </TR>
|
---|
206 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
207 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
208 | <CODE> void</CODE></FONT></TD>
|
---|
209 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/filters/TailFilter.html#setSkip(long)">setSkip</A></B>(long skip)</CODE>
|
---|
210 |
|
---|
211 | <BR>
|
---|
212 | Sets the number of lines to be skipped in the filtered stream.</TD>
|
---|
213 | </TR>
|
---|
214 | </TABLE>
|
---|
215 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.filters.BaseParamFilterReader"><!-- --></A>
|
---|
216 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
217 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
218 | <TD><B>Methods inherited from class org.apache.tools.ant.filters.<A HREF="../../../../../org/apache/tools/ant/filters/BaseParamFilterReader.html" title="class in org.apache.tools.ant.filters">BaseParamFilterReader</A></B></TD>
|
---|
219 | </TR>
|
---|
220 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
221 | <TD><CODE><A HREF="../../../../../org/apache/tools/ant/filters/BaseParamFilterReader.html#getParameters()">getParameters</A>, <A HREF="../../../../../org/apache/tools/ant/filters/BaseParamFilterReader.html#setParameters(org.apache.tools.ant.types.Parameter[])">setParameters</A></CODE></TD>
|
---|
222 | </TR>
|
---|
223 | </TABLE>
|
---|
224 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.filters.BaseFilterReader"><!-- --></A>
|
---|
225 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
226 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
227 | <TD><B>Methods inherited from class org.apache.tools.ant.filters.<A HREF="../../../../../org/apache/tools/ant/filters/BaseFilterReader.html" title="class in org.apache.tools.ant.filters">BaseFilterReader</A></B></TD>
|
---|
228 | </TR>
|
---|
229 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
230 | <TD><CODE><A HREF="../../../../../org/apache/tools/ant/filters/BaseFilterReader.html#getInitialized()">getInitialized</A>, <A HREF="../../../../../org/apache/tools/ant/filters/BaseFilterReader.html#getProject()">getProject</A>, <A HREF="../../../../../org/apache/tools/ant/filters/BaseFilterReader.html#read(char[], int, int)">read</A>, <A HREF="../../../../../org/apache/tools/ant/filters/BaseFilterReader.html#readFully()">readFully</A>, <A HREF="../../../../../org/apache/tools/ant/filters/BaseFilterReader.html#readLine()">readLine</A>, <A HREF="../../../../../org/apache/tools/ant/filters/BaseFilterReader.html#setInitialized(boolean)">setInitialized</A>, <A HREF="../../../../../org/apache/tools/ant/filters/BaseFilterReader.html#setProject(org.apache.tools.ant.Project)">setProject</A>, <A HREF="../../../../../org/apache/tools/ant/filters/BaseFilterReader.html#skip(long)">skip</A></CODE></TD>
|
---|
231 | </TR>
|
---|
232 | </TABLE>
|
---|
233 | <A NAME="methods_inherited_from_class_java.io.FilterReader"><!-- --></A>
|
---|
234 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
235 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
236 | <TD><B>Methods inherited from class java.io.FilterReader</B></TD>
|
---|
237 | </TR>
|
---|
238 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
239 | <TD><CODE>close, mark, markSupported, ready, reset</CODE></TD>
|
---|
240 | </TR>
|
---|
241 | </TABLE>
|
---|
242 | <A NAME="methods_inherited_from_class_java.io.Reader"><!-- --></A>
|
---|
243 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
244 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
245 | <TD><B>Methods inherited from class java.io.Reader</B></TD>
|
---|
246 | </TR>
|
---|
247 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
248 | <TD><CODE>read</CODE></TD>
|
---|
249 | </TR>
|
---|
250 | </TABLE>
|
---|
251 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
252 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
253 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
254 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
255 | </TR>
|
---|
256 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
257 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
258 | </TR>
|
---|
259 | </TABLE>
|
---|
260 |
|
---|
261 | <P>
|
---|
262 |
|
---|
263 | <!-- ============ FIELD DETAIL =========== -->
|
---|
264 |
|
---|
265 |
|
---|
266 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
267 |
|
---|
268 | <A NAME="constructor_detail"><!-- --></A>
|
---|
269 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
270 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
271 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
272 | <B>Constructor Detail</B></FONT></TD>
|
---|
273 | </TR>
|
---|
274 | </TABLE>
|
---|
275 |
|
---|
276 | <A NAME="TailFilter()"><!-- --></A><H3>
|
---|
277 | TailFilter</H3>
|
---|
278 | <PRE>
|
---|
279 | public <B>TailFilter</B>()</PRE>
|
---|
280 | <DL>
|
---|
281 | <DD>Constructor for "dummy" instances.
|
---|
282 | <P>
|
---|
283 | <DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/tools/ant/filters/BaseFilterReader.html#BaseFilterReader()"><CODE>BaseFilterReader.BaseFilterReader()</CODE></A></DL>
|
---|
284 | <HR>
|
---|
285 |
|
---|
286 | <A NAME="TailFilter(java.io.Reader)"><!-- --></A><H3>
|
---|
287 | TailFilter</H3>
|
---|
288 | <PRE>
|
---|
289 | public <B>TailFilter</B>(java.io.Reader in)</PRE>
|
---|
290 | <DL>
|
---|
291 | <DD>Creates a new filtered reader.
|
---|
292 | <P>
|
---|
293 | <DT><B>Parameters:</B><DD><CODE>in</CODE> - A Reader object providing the underlying stream.
|
---|
294 | Must not be <code>null</code>.</DL>
|
---|
295 |
|
---|
296 | <!-- ============ METHOD DETAIL ========== -->
|
---|
297 |
|
---|
298 | <A NAME="method_detail"><!-- --></A>
|
---|
299 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
300 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
301 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
302 | <B>Method Detail</B></FONT></TD>
|
---|
303 | </TR>
|
---|
304 | </TABLE>
|
---|
305 |
|
---|
306 | <A NAME="read()"><!-- --></A><H3>
|
---|
307 | read</H3>
|
---|
308 | <PRE>
|
---|
309 | public final int <B>read</B>()
|
---|
310 | throws java.io.IOException</PRE>
|
---|
311 | <DL>
|
---|
312 | <DD>Returns the next character in the filtered stream. If the read-ahead
|
---|
313 | has been completed, the next character in the buffer is returned.
|
---|
314 | Otherwise, the stream is read to the end and buffered (with the buffer
|
---|
315 | growing as necessary), then the appropriate position in the buffer is
|
---|
316 | set to read from.
|
---|
317 | <P>
|
---|
318 | <DD><DL>
|
---|
319 | </DL>
|
---|
320 | </DD>
|
---|
321 | <DD><DL>
|
---|
322 |
|
---|
323 | <DT><B>Returns:</B><DD>the next character in the resulting stream, or -1
|
---|
324 | if the end of the resulting stream has been reached
|
---|
325 | <DT><B>Throws:</B>
|
---|
326 | <DD><CODE>java.io.IOException</CODE> - if the underlying stream throws an IOException
|
---|
327 | during reading</DL>
|
---|
328 | </DD>
|
---|
329 | </DL>
|
---|
330 | <HR>
|
---|
331 |
|
---|
332 | <A NAME="setLines(long)"><!-- --></A><H3>
|
---|
333 | setLines</H3>
|
---|
334 | <PRE>
|
---|
335 | public final void <B>setLines</B>(long lines)</PRE>
|
---|
336 | <DL>
|
---|
337 | <DD>Sets the number of lines to be returned in the filtered stream.
|
---|
338 | <P>
|
---|
339 | <DD><DL>
|
---|
340 | </DL>
|
---|
341 | </DD>
|
---|
342 | <DD><DL>
|
---|
343 | <DT><B>Parameters:</B><DD><CODE>lines</CODE> - the number of lines to be returned in the filtered stream</DL>
|
---|
344 | </DD>
|
---|
345 | </DL>
|
---|
346 | <HR>
|
---|
347 |
|
---|
348 | <A NAME="setSkip(long)"><!-- --></A><H3>
|
---|
349 | setSkip</H3>
|
---|
350 | <PRE>
|
---|
351 | public final void <B>setSkip</B>(long skip)</PRE>
|
---|
352 | <DL>
|
---|
353 | <DD>Sets the number of lines to be skipped in the filtered stream.
|
---|
354 | <P>
|
---|
355 | <DD><DL>
|
---|
356 | </DL>
|
---|
357 | </DD>
|
---|
358 | <DD><DL>
|
---|
359 | <DT><B>Parameters:</B><DD><CODE>skip</CODE> - the number of lines to be skipped in the filtered stream</DL>
|
---|
360 | </DD>
|
---|
361 | </DL>
|
---|
362 | <HR>
|
---|
363 |
|
---|
364 | <A NAME="chain(java.io.Reader)"><!-- --></A><H3>
|
---|
365 | chain</H3>
|
---|
366 | <PRE>
|
---|
367 | public final java.io.Reader <B>chain</B>(java.io.Reader rdr)</PRE>
|
---|
368 | <DL>
|
---|
369 | <DD>Creates a new TailFilter using the passed in
|
---|
370 | Reader for instantiation.
|
---|
371 | <P>
|
---|
372 | <DD><DL>
|
---|
373 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/filters/ChainableReader.html#chain(java.io.Reader)">chain</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/tools/ant/filters/ChainableReader.html" title="interface in org.apache.tools.ant.filters">ChainableReader</A></CODE></DL>
|
---|
374 | </DD>
|
---|
375 | <DD><DL>
|
---|
376 | <DT><B>Parameters:</B><DD><CODE>rdr</CODE> - A Reader object providing the underlying stream.
|
---|
377 | Must not be <code>null</code>.
|
---|
378 | <DT><B>Returns:</B><DD>a new filter based on this configuration, but filtering
|
---|
379 | the specified reader</DL>
|
---|
380 | </DD>
|
---|
381 | </DL>
|
---|
382 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
383 | <HR>
|
---|
384 |
|
---|
385 |
|
---|
386 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
387 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
388 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
389 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
390 | <TR>
|
---|
391 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
392 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
393 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
394 | <TR ALIGN="center" VALIGN="top">
|
---|
395 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
396 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
397 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
398 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
399 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
400 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
401 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
402 | </TR>
|
---|
403 | </TABLE>
|
---|
404 | </TD>
|
---|
405 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
406 | </EM>
|
---|
407 | </TD>
|
---|
408 | </TR>
|
---|
409 |
|
---|
410 | <TR>
|
---|
411 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
412 | <A HREF="../../../../../org/apache/tools/ant/filters/TabsToSpaces.html" title="class in org.apache.tools.ant.filters"><B>PREV CLASS</B></A>
|
---|
413 | <A HREF="../../../../../org/apache/tools/ant/filters/TokenFilter.html" title="class in org.apache.tools.ant.filters"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
414 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
415 | <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
416 | <A HREF="TailFilter.html" target="_top"><B>NO FRAMES</B></A>
|
---|
417 | <SCRIPT type="text/javascript">
|
---|
418 | <!--
|
---|
419 | if(window==top) {
|
---|
420 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
421 | }
|
---|
422 | //-->
|
---|
423 | </SCRIPT>
|
---|
424 | <NOSCRIPT>
|
---|
425 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
426 | </NOSCRIPT>
|
---|
427 |
|
---|
428 | </FONT></TD>
|
---|
429 | </TR>
|
---|
430 | <TR>
|
---|
431 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
432 | SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_java.io.FilterReader">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
433 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
434 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
435 | </TR>
|
---|
436 | </TABLE>
|
---|
437 | <A NAME="skip-navbar_bottom"></A>
|
---|
438 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
439 |
|
---|
440 | <HR>
|
---|
441 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
442 | </BODY>
|
---|
443 | </HTML>
|
---|