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:34 NZST 2007 -->
|
---|
6 | <TITLE>
|
---|
7 | HashvalueAlgorithm (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.types.selectors.modifiedselector.HashvalueAlgorithm 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="HashvalueAlgorithm (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/types/selectors/modifiedselector/EqualComparator.html" title="class in org.apache.tools.ant.types.selectors.modifiedselector"><B>PREV CLASS</B></A>
|
---|
53 | <A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html" title="class in org.apache.tools.ant.types.selectors.modifiedselector"><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="HashvalueAlgorithm.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.types.selectors.modifiedselector</FONT>
|
---|
85 | <BR>
|
---|
86 | Class HashvalueAlgorithm</H2>
|
---|
87 | <PRE>
|
---|
88 | java.lang.Object
|
---|
89 | <IMG SRC="../../../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.types.selectors.modifiedselector.HashvalueAlgorithm</B>
|
---|
90 | </PRE>
|
---|
91 | <DL>
|
---|
92 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/Algorithm.html" title="interface in org.apache.tools.ant.types.selectors.modifiedselector">Algorithm</A></DD>
|
---|
93 | </DL>
|
---|
94 | <HR>
|
---|
95 | <DL>
|
---|
96 | <DT>public class <B>HashvalueAlgorithm</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/Algorithm.html" title="interface in org.apache.tools.ant.types.selectors.modifiedselector">Algorithm</A></DL>
|
---|
97 |
|
---|
98 | <P>
|
---|
99 | Computes a 'hashvalue' for the content of file using String.hashValue().
|
---|
100 | Use of this algorithm doesn't require any additional nested <param>s and
|
---|
101 | doesn't support any.
|
---|
102 | <P>
|
---|
103 |
|
---|
104 | <P>
|
---|
105 | <DL>
|
---|
106 | <DT><B>Since:</B></DT>
|
---|
107 | <DD>Ant 1.6</DD>
|
---|
108 | <DT><B>Version:</B></DT>
|
---|
109 | <DD>2003-09-13</DD>
|
---|
110 | </DL>
|
---|
111 | <HR>
|
---|
112 |
|
---|
113 | <P>
|
---|
114 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
115 |
|
---|
116 |
|
---|
117 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
118 |
|
---|
119 |
|
---|
120 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
121 |
|
---|
122 | <A NAME="constructor_summary"><!-- --></A>
|
---|
123 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
124 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
125 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
126 | <B>Constructor Summary</B></FONT></TD>
|
---|
127 | </TR>
|
---|
128 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
129 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/HashvalueAlgorithm.html#HashvalueAlgorithm()">HashvalueAlgorithm</A></B>()</CODE>
|
---|
130 |
|
---|
131 | <BR>
|
---|
132 | </TD>
|
---|
133 | </TR>
|
---|
134 | </TABLE>
|
---|
135 |
|
---|
136 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
137 |
|
---|
138 | <A NAME="method_summary"><!-- --></A>
|
---|
139 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
140 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
141 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
142 | <B>Method Summary</B></FONT></TD>
|
---|
143 | </TR>
|
---|
144 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
145 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
146 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
147 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/HashvalueAlgorithm.html#getValue(java.io.File)">getValue</A></B>(java.io.File file)</CODE>
|
---|
148 |
|
---|
149 | <BR>
|
---|
150 | Computes a 'hashvalue' for a file content.</TD>
|
---|
151 | </TR>
|
---|
152 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
153 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
154 | <CODE> boolean</CODE></FONT></TD>
|
---|
155 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/HashvalueAlgorithm.html#isValid()">isValid</A></B>()</CODE>
|
---|
156 |
|
---|
157 | <BR>
|
---|
158 | This algorithm doesn't need any configuration.</TD>
|
---|
159 | </TR>
|
---|
160 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
161 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
162 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
163 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/HashvalueAlgorithm.html#toString()">toString</A></B>()</CODE>
|
---|
164 |
|
---|
165 | <BR>
|
---|
166 | Override Object.toString().</TD>
|
---|
167 | </TR>
|
---|
168 | </TABLE>
|
---|
169 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
170 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
171 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
172 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
173 | </TR>
|
---|
174 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
175 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
|
---|
176 | </TR>
|
---|
177 | </TABLE>
|
---|
178 |
|
---|
179 | <P>
|
---|
180 |
|
---|
181 | <!-- ============ FIELD DETAIL =========== -->
|
---|
182 |
|
---|
183 |
|
---|
184 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
185 |
|
---|
186 | <A NAME="constructor_detail"><!-- --></A>
|
---|
187 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
188 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
189 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
190 | <B>Constructor Detail</B></FONT></TD>
|
---|
191 | </TR>
|
---|
192 | </TABLE>
|
---|
193 |
|
---|
194 | <A NAME="HashvalueAlgorithm()"><!-- --></A><H3>
|
---|
195 | HashvalueAlgorithm</H3>
|
---|
196 | <PRE>
|
---|
197 | public <B>HashvalueAlgorithm</B>()</PRE>
|
---|
198 | <DL>
|
---|
199 | </DL>
|
---|
200 |
|
---|
201 | <!-- ============ METHOD DETAIL ========== -->
|
---|
202 |
|
---|
203 | <A NAME="method_detail"><!-- --></A>
|
---|
204 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
205 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
206 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
207 | <B>Method Detail</B></FONT></TD>
|
---|
208 | </TR>
|
---|
209 | </TABLE>
|
---|
210 |
|
---|
211 | <A NAME="isValid()"><!-- --></A><H3>
|
---|
212 | isValid</H3>
|
---|
213 | <PRE>
|
---|
214 | public boolean <B>isValid</B>()</PRE>
|
---|
215 | <DL>
|
---|
216 | <DD>This algorithm doesn't need any configuration.
|
---|
217 | Therefore it's always valid.
|
---|
218 | <P>
|
---|
219 | <DD><DL>
|
---|
220 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/Algorithm.html#isValid()">isValid</A></CODE> in interface <CODE><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/Algorithm.html" title="interface in org.apache.tools.ant.types.selectors.modifiedselector">Algorithm</A></CODE></DL>
|
---|
221 | </DD>
|
---|
222 | <DD><DL>
|
---|
223 |
|
---|
224 | <DT><B>Returns:</B><DD>always true</DL>
|
---|
225 | </DD>
|
---|
226 | </DL>
|
---|
227 | <HR>
|
---|
228 |
|
---|
229 | <A NAME="getValue(java.io.File)"><!-- --></A><H3>
|
---|
230 | getValue</H3>
|
---|
231 | <PRE>
|
---|
232 | public java.lang.String <B>getValue</B>(java.io.File file)</PRE>
|
---|
233 | <DL>
|
---|
234 | <DD>Computes a 'hashvalue' for a file content.
|
---|
235 | It reads the content of a file, convert that to String and use the
|
---|
236 | String.hashCode() method.
|
---|
237 | <P>
|
---|
238 | <DD><DL>
|
---|
239 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/Algorithm.html#getValue(java.io.File)">getValue</A></CODE> in interface <CODE><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/Algorithm.html" title="interface in org.apache.tools.ant.types.selectors.modifiedselector">Algorithm</A></CODE></DL>
|
---|
240 | </DD>
|
---|
241 | <DD><DL>
|
---|
242 | <DT><B>Parameters:</B><DD><CODE>file</CODE> - The file for which the value should be computed
|
---|
243 | <DT><B>Returns:</B><DD>the hashvalue or <i>null</i> if the file couldn't be read</DL>
|
---|
244 | </DD>
|
---|
245 | </DL>
|
---|
246 | <HR>
|
---|
247 |
|
---|
248 | <A NAME="toString()"><!-- --></A><H3>
|
---|
249 | toString</H3>
|
---|
250 | <PRE>
|
---|
251 | public java.lang.String <B>toString</B>()</PRE>
|
---|
252 | <DL>
|
---|
253 | <DD>Override Object.toString().
|
---|
254 | <P>
|
---|
255 | <DD><DL>
|
---|
256 | </DL>
|
---|
257 | </DD>
|
---|
258 | <DD><DL>
|
---|
259 |
|
---|
260 | <DT><B>Returns:</B><DD>information about this comparator</DL>
|
---|
261 | </DD>
|
---|
262 | </DL>
|
---|
263 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
264 | <HR>
|
---|
265 |
|
---|
266 |
|
---|
267 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
268 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
269 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
270 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
271 | <TR>
|
---|
272 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
273 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
274 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
275 | <TR ALIGN="center" VALIGN="top">
|
---|
276 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
277 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
278 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
279 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
280 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
281 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
282 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
283 | </TR>
|
---|
284 | </TABLE>
|
---|
285 | </TD>
|
---|
286 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
287 | </EM>
|
---|
288 | </TD>
|
---|
289 | </TR>
|
---|
290 |
|
---|
291 | <TR>
|
---|
292 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
293 | <A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/EqualComparator.html" title="class in org.apache.tools.ant.types.selectors.modifiedselector"><B>PREV CLASS</B></A>
|
---|
294 | <A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html" title="class in org.apache.tools.ant.types.selectors.modifiedselector"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
295 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
296 | <A HREF="../../../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
297 | <A HREF="HashvalueAlgorithm.html" target="_top"><B>NO FRAMES</B></A>
|
---|
298 | <SCRIPT type="text/javascript">
|
---|
299 | <!--
|
---|
300 | if(window==top) {
|
---|
301 | document.writeln('<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
302 | }
|
---|
303 | //-->
|
---|
304 | </SCRIPT>
|
---|
305 | <NOSCRIPT>
|
---|
306 | <A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
307 | </NOSCRIPT>
|
---|
308 |
|
---|
309 | </FONT></TD>
|
---|
310 | </TR>
|
---|
311 | <TR>
|
---|
312 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
313 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
314 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
315 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
316 | </TR>
|
---|
317 | </TABLE>
|
---|
318 | <A NAME="skip-navbar_bottom"></A>
|
---|
319 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
320 |
|
---|
321 | <HR>
|
---|
322 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
323 | </BODY>
|
---|
324 | </HTML>
|
---|