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.6.0_07) on Tue Sep 01 20:56:55 UTC 2009 --> |
---|
6 | <TITLE> |
---|
7 | StringUtils (Hadoop 0.20.1 API) |
---|
8 | </TITLE> |
---|
9 | |
---|
10 | <META NAME="date" CONTENT="2009-09-01"> |
---|
11 | |
---|
12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
---|
13 | |
---|
14 | <SCRIPT type="text/javascript"> |
---|
15 | function windowTitle() |
---|
16 | { |
---|
17 | if (location.href.indexOf('is-external=true') == -1) { |
---|
18 | parent.document.title="StringUtils (Hadoop 0.20.1 API)"; |
---|
19 | } |
---|
20 | } |
---|
21 | </SCRIPT> |
---|
22 | <NOSCRIPT> |
---|
23 | </NOSCRIPT> |
---|
24 | |
---|
25 | </HEAD> |
---|
26 | |
---|
27 | <BODY BGCOLOR="white" onload="windowTitle();"> |
---|
28 | <HR> |
---|
29 | |
---|
30 | |
---|
31 | <!-- ========= START OF TOP NAVBAR ======= --> |
---|
32 | <A NAME="navbar_top"><!-- --></A> |
---|
33 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
---|
34 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
35 | <TR> |
---|
36 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
37 | <A NAME="navbar_top_firstrow"><!-- --></A> |
---|
38 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
39 | <TR ALIGN="center" VALIGN="top"> |
---|
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
42 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StringUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
48 | </TR> |
---|
49 | </TABLE> |
---|
50 | </TD> |
---|
51 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
52 | </EM> |
---|
53 | </TD> |
---|
54 | </TR> |
---|
55 | |
---|
56 | <TR> |
---|
57 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
58 | <A HREF="../../../../org/apache/hadoop/util/Shell.ShellCommandExecutor.html" title="class in org.apache.hadoop.util"><B>PREV CLASS</B></A> |
---|
59 | <A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" title="enum in org.apache.hadoop.util"><B>NEXT CLASS</B></A></FONT></TD> |
---|
60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
61 | <A HREF="../../../../index.html?org/apache/hadoop/util/StringUtils.html" target="_top"><B>FRAMES</B></A> |
---|
62 | <A HREF="StringUtils.html" target="_top"><B>NO FRAMES</B></A> |
---|
63 | <SCRIPT type="text/javascript"> |
---|
64 | <!-- |
---|
65 | if(window==top) { |
---|
66 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
67 | } |
---|
68 | //--> |
---|
69 | </SCRIPT> |
---|
70 | <NOSCRIPT> |
---|
71 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
72 | </NOSCRIPT> |
---|
73 | |
---|
74 | |
---|
75 | </FONT></TD> |
---|
76 | </TR> |
---|
77 | <TR> |
---|
78 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
79 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
80 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
81 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
82 | </TR> |
---|
83 | </TABLE> |
---|
84 | <A NAME="skip-navbar_top"></A> |
---|
85 | <!-- ========= END OF TOP NAVBAR ========= --> |
---|
86 | |
---|
87 | <HR> |
---|
88 | <!-- ======== START OF CLASS DATA ======== --> |
---|
89 | <H2> |
---|
90 | <FONT SIZE="-1"> |
---|
91 | org.apache.hadoop.util</FONT> |
---|
92 | <BR> |
---|
93 | Class StringUtils</H2> |
---|
94 | <PRE> |
---|
95 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> |
---|
96 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.hadoop.util.StringUtils</B> |
---|
97 | </PRE> |
---|
98 | <HR> |
---|
99 | <DL> |
---|
100 | <DT><PRE>public class <B>StringUtils</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL> |
---|
101 | </PRE> |
---|
102 | |
---|
103 | <P> |
---|
104 | General string utils |
---|
105 | <P> |
---|
106 | |
---|
107 | <P> |
---|
108 | <HR> |
---|
109 | |
---|
110 | <P> |
---|
111 | <!-- ======== NESTED CLASS SUMMARY ======== --> |
---|
112 | |
---|
113 | <A NAME="nested_class_summary"><!-- --></A> |
---|
114 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
115 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
116 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
117 | <B>Nested Class Summary</B></FONT></TH> |
---|
118 | </TR> |
---|
119 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
120 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
121 | <CODE>static class</CODE></FONT></TD> |
---|
122 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" title="enum in org.apache.hadoop.util">StringUtils.TraditionalBinaryPrefix</A></B></CODE> |
---|
123 | |
---|
124 | <BR> |
---|
125 | The traditional binary prefixes, kilo, mega, ..., exa, |
---|
126 | which can be represented by a 64-bit integer.</TD> |
---|
127 | </TR> |
---|
128 | </TABLE> |
---|
129 | <!-- =========== FIELD SUMMARY =========== --> |
---|
130 | |
---|
131 | <A NAME="field_summary"><!-- --></A> |
---|
132 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
133 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
134 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
135 | <B>Field Summary</B></FONT></TH> |
---|
136 | </TR> |
---|
137 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
138 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
139 | <CODE>static char</CODE></FONT></TD> |
---|
140 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#COMMA">COMMA</A></B></CODE> |
---|
141 | |
---|
142 | <BR> |
---|
143 | </TD> |
---|
144 | </TR> |
---|
145 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
146 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
147 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
148 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#COMMA_STR">COMMA_STR</A></B></CODE> |
---|
149 | |
---|
150 | <BR> |
---|
151 | </TD> |
---|
152 | </TR> |
---|
153 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
154 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
155 | <CODE>static char</CODE></FONT></TD> |
---|
156 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#ESCAPE_CHAR">ESCAPE_CHAR</A></B></CODE> |
---|
157 | |
---|
158 | <BR> |
---|
159 | </TD> |
---|
160 | </TR> |
---|
161 | </TABLE> |
---|
162 | |
---|
163 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
164 | |
---|
165 | <A NAME="constructor_summary"><!-- --></A> |
---|
166 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
167 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
168 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
169 | <B>Constructor Summary</B></FONT></TH> |
---|
170 | </TR> |
---|
171 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
172 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#StringUtils()">StringUtils</A></B>()</CODE> |
---|
173 | |
---|
174 | <BR> |
---|
175 | </TD> |
---|
176 | </TR> |
---|
177 | </TABLE> |
---|
178 | |
---|
179 | <!-- ========== METHOD SUMMARY =========== --> |
---|
180 | |
---|
181 | <A NAME="method_summary"><!-- --></A> |
---|
182 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
183 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
184 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
185 | <B>Method Summary</B></FONT></TH> |
---|
186 | </TR> |
---|
187 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
188 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
189 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
190 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#arrayToString(java.lang.String[])">arrayToString</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] strs)</CODE> |
---|
191 | |
---|
192 | <BR> |
---|
193 | Given an array of strings, return a comma-separated list of its elements.</TD> |
---|
194 | </TR> |
---|
195 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
196 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
197 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
198 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#byteDesc(long)">byteDesc</A></B>(long len)</CODE> |
---|
199 | |
---|
200 | <BR> |
---|
201 | Return an abbreviated English-language desc of the byte length</TD> |
---|
202 | </TR> |
---|
203 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
204 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
205 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
206 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#byteToHexString(byte[])">byteToHexString</A></B>(byte[] bytes)</CODE> |
---|
207 | |
---|
208 | <BR> |
---|
209 | Same as byteToHexString(bytes, 0, bytes.length).</TD> |
---|
210 | </TR> |
---|
211 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
212 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
213 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
214 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#byteToHexString(byte[], int, int)">byteToHexString</A></B>(byte[] bytes, |
---|
215 | int start, |
---|
216 | int end)</CODE> |
---|
217 | |
---|
218 | <BR> |
---|
219 | Given an array of bytes it will convert the bytes to a hex string |
---|
220 | representation of the bytes</TD> |
---|
221 | </TR> |
---|
222 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
223 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
224 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
225 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#escapeHTML(java.lang.String)">escapeHTML</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> string)</CODE> |
---|
226 | |
---|
227 | <BR> |
---|
228 | Escapes HTML Special characters present in the string.</TD> |
---|
229 | </TR> |
---|
230 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
231 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
232 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
233 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#escapeString(java.lang.String)">escapeString</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str)</CODE> |
---|
234 | |
---|
235 | <BR> |
---|
236 | Escape commas in the string using the default escape char</TD> |
---|
237 | </TR> |
---|
238 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
239 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
240 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
241 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#escapeString(java.lang.String, char, char)">escapeString</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str, |
---|
242 | char escapeChar, |
---|
243 | char charToEscape)</CODE> |
---|
244 | |
---|
245 | <BR> |
---|
246 | Escape <code>charToEscape</code> in the string |
---|
247 | with the escape char <code>escapeChar</code></TD> |
---|
248 | </TR> |
---|
249 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
250 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
251 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
252 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#escapeString(java.lang.String, char, char[])">escapeString</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str, |
---|
253 | char escapeChar, |
---|
254 | char[] charsToEscape)</CODE> |
---|
255 | |
---|
256 | <BR> |
---|
257 | </TD> |
---|
258 | </TR> |
---|
259 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
260 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
261 | <CODE>static int</CODE></FONT></TD> |
---|
262 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#findNext(java.lang.String, char, char, int, java.lang.StringBuilder)">findNext</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str, |
---|
263 | char separator, |
---|
264 | char escapeChar, |
---|
265 | int start, |
---|
266 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</A> split)</CODE> |
---|
267 | |
---|
268 | <BR> |
---|
269 | Finds the first occurrence of the separator character ignoring the escaped |
---|
270 | separators starting from the index.</TD> |
---|
271 | </TR> |
---|
272 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
273 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
274 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
275 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#formatPercent(double, int)">formatPercent</A></B>(double done, |
---|
276 | int digits)</CODE> |
---|
277 | |
---|
278 | <BR> |
---|
279 | Format a percentage for presentation to the user.</TD> |
---|
280 | </TR> |
---|
281 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
282 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
283 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
284 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#formatTime(long)">formatTime</A></B>(long timeDiff)</CODE> |
---|
285 | |
---|
286 | <BR> |
---|
287 | Given the time in long milliseconds, returns a |
---|
288 | String in the format Xhrs, Ymins, Z sec.</TD> |
---|
289 | </TR> |
---|
290 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
291 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
292 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
293 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#formatTimeDiff(long, long)">formatTimeDiff</A></B>(long finishTime, |
---|
294 | long startTime)</CODE> |
---|
295 | |
---|
296 | <BR> |
---|
297 | Given a finish and start time in long milliseconds, returns a |
---|
298 | String in the format Xhrs, Ymins, Z sec, for the time difference between two times.</TD> |
---|
299 | </TR> |
---|
300 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
301 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
302 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
303 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#getFormattedTimeWithDiff(java.text.DateFormat, long, long)">getFormattedTimeWithDiff</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/text/DateFormat.html?is-external=true" title="class or interface in java.text">DateFormat</A> dateFormat, |
---|
304 | long finishTime, |
---|
305 | long startTime)</CODE> |
---|
306 | |
---|
307 | <BR> |
---|
308 | Formats time in ms and appends difference (finishTime - startTime) |
---|
309 | as returned by formatTimeDiff().</TD> |
---|
310 | </TR> |
---|
311 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
312 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
313 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
314 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#getHostname()">getHostname</A></B>()</CODE> |
---|
315 | |
---|
316 | <BR> |
---|
317 | Return hostname without throwing exception.</TD> |
---|
318 | </TR> |
---|
319 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
320 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
321 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>></CODE></FONT></TD> |
---|
322 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#getStringCollection(java.lang.String)">getStringCollection</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str)</CODE> |
---|
323 | |
---|
324 | <BR> |
---|
325 | Returns a collection of strings.</TD> |
---|
326 | </TR> |
---|
327 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
328 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
329 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD> |
---|
330 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#getStrings(java.lang.String)">getStrings</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str)</CODE> |
---|
331 | |
---|
332 | <BR> |
---|
333 | Returns an arraylist of strings.</TD> |
---|
334 | </TR> |
---|
335 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
336 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
337 | <CODE>static byte[]</CODE></FONT></TD> |
---|
338 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#hexStringToByte(java.lang.String)">hexStringToByte</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> hex)</CODE> |
---|
339 | |
---|
340 | <BR> |
---|
341 | Given a hexstring this will return the byte array corresponding to the |
---|
342 | string</TD> |
---|
343 | </TR> |
---|
344 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
345 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
346 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
347 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#humanReadableInt(long)">humanReadableInt</A></B>(long number)</CODE> |
---|
348 | |
---|
349 | <BR> |
---|
350 | Given an integer, return a string that is in an approximate, but human |
---|
351 | readable format.</TD> |
---|
352 | </TR> |
---|
353 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
354 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
355 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
356 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#limitDecimalTo2(double)">limitDecimalTo2</A></B>(double d)</CODE> |
---|
357 | |
---|
358 | <BR> |
---|
359 | </TD> |
---|
360 | </TR> |
---|
361 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
362 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
363 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
364 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#simpleHostname(java.lang.String)">simpleHostname</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fullHostname)</CODE> |
---|
365 | |
---|
366 | <BR> |
---|
367 | Given a full hostname, return the word upto the first dot.</TD> |
---|
368 | </TR> |
---|
369 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
370 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
371 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD> |
---|
372 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#split(java.lang.String)">split</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str)</CODE> |
---|
373 | |
---|
374 | <BR> |
---|
375 | Split a string using the default separator</TD> |
---|
376 | </TR> |
---|
377 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
378 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
379 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD> |
---|
380 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#split(java.lang.String, char, char)">split</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str, |
---|
381 | char escapeChar, |
---|
382 | char separator)</CODE> |
---|
383 | |
---|
384 | <BR> |
---|
385 | Split a string using the given separator</TD> |
---|
386 | </TR> |
---|
387 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
388 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
389 | <CODE>static void</CODE></FONT></TD> |
---|
390 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#startupShutdownMessage(java.lang.Class, java.lang.String[], org.apache.commons.logging.Log)">startupShutdownMessage</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> clazz, |
---|
391 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] args, |
---|
392 | org.apache.commons.logging.Log LOG)</CODE> |
---|
393 | |
---|
394 | <BR> |
---|
395 | Print a log message for starting up and shutting down</TD> |
---|
396 | </TR> |
---|
397 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
398 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
399 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
400 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#stringifyException(java.lang.Throwable)">stringifyException</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> e)</CODE> |
---|
401 | |
---|
402 | <BR> |
---|
403 | Make a string representation of the exception.</TD> |
---|
404 | </TR> |
---|
405 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
406 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
407 | <CODE>static <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[]</CODE></FONT></TD> |
---|
408 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#stringToPath(java.lang.String[])">stringToPath</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] str)</CODE> |
---|
409 | |
---|
410 | <BR> |
---|
411 | </TD> |
---|
412 | </TR> |
---|
413 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
414 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
415 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</A>[]</CODE></FONT></TD> |
---|
416 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#stringToURI(java.lang.String[])">stringToURI</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] str)</CODE> |
---|
417 | |
---|
418 | <BR> |
---|
419 | </TD> |
---|
420 | </TR> |
---|
421 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
422 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
423 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
424 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#unEscapeString(java.lang.String)">unEscapeString</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str)</CODE> |
---|
425 | |
---|
426 | <BR> |
---|
427 | Unescape commas in the string using the default escape char</TD> |
---|
428 | </TR> |
---|
429 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
430 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
431 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
432 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#unEscapeString(java.lang.String, char, char)">unEscapeString</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str, |
---|
433 | char escapeChar, |
---|
434 | char charToEscape)</CODE> |
---|
435 | |
---|
436 | <BR> |
---|
437 | Unescape <code>charToEscape</code> in the string |
---|
438 | with the escape char <code>escapeChar</code></TD> |
---|
439 | </TR> |
---|
440 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
441 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
442 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
443 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#unEscapeString(java.lang.String, char, char[])">unEscapeString</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str, |
---|
444 | char escapeChar, |
---|
445 | char[] charsToEscape)</CODE> |
---|
446 | |
---|
447 | <BR> |
---|
448 | </TD> |
---|
449 | </TR> |
---|
450 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
451 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
452 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
453 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/util/StringUtils.html#uriToString(java.net.URI[])">uriToString</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</A>[] uris)</CODE> |
---|
454 | |
---|
455 | <BR> |
---|
456 | </TD> |
---|
457 | </TR> |
---|
458 | </TABLE> |
---|
459 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
460 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
461 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
462 | <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> |
---|
463 | </TR> |
---|
464 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
465 | <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> |
---|
466 | </TR> |
---|
467 | </TABLE> |
---|
468 | |
---|
469 | <P> |
---|
470 | |
---|
471 | <!-- ============ FIELD DETAIL =========== --> |
---|
472 | |
---|
473 | <A NAME="field_detail"><!-- --></A> |
---|
474 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
475 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
476 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
477 | <B>Field Detail</B></FONT></TH> |
---|
478 | </TR> |
---|
479 | </TABLE> |
---|
480 | |
---|
481 | <A NAME="COMMA"><!-- --></A><H3> |
---|
482 | COMMA</H3> |
---|
483 | <PRE> |
---|
484 | public static final char <B>COMMA</B></PRE> |
---|
485 | <DL> |
---|
486 | <DL> |
---|
487 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.hadoop.util.StringUtils.COMMA">Constant Field Values</A></DL> |
---|
488 | </DL> |
---|
489 | <HR> |
---|
490 | |
---|
491 | <A NAME="COMMA_STR"><!-- --></A><H3> |
---|
492 | COMMA_STR</H3> |
---|
493 | <PRE> |
---|
494 | public static final <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>COMMA_STR</B></PRE> |
---|
495 | <DL> |
---|
496 | <DL> |
---|
497 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.hadoop.util.StringUtils.COMMA_STR">Constant Field Values</A></DL> |
---|
498 | </DL> |
---|
499 | <HR> |
---|
500 | |
---|
501 | <A NAME="ESCAPE_CHAR"><!-- --></A><H3> |
---|
502 | ESCAPE_CHAR</H3> |
---|
503 | <PRE> |
---|
504 | public static final char <B>ESCAPE_CHAR</B></PRE> |
---|
505 | <DL> |
---|
506 | <DL> |
---|
507 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.hadoop.util.StringUtils.ESCAPE_CHAR">Constant Field Values</A></DL> |
---|
508 | </DL> |
---|
509 | |
---|
510 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
511 | |
---|
512 | <A NAME="constructor_detail"><!-- --></A> |
---|
513 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
514 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
515 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
516 | <B>Constructor Detail</B></FONT></TH> |
---|
517 | </TR> |
---|
518 | </TABLE> |
---|
519 | |
---|
520 | <A NAME="StringUtils()"><!-- --></A><H3> |
---|
521 | StringUtils</H3> |
---|
522 | <PRE> |
---|
523 | public <B>StringUtils</B>()</PRE> |
---|
524 | <DL> |
---|
525 | </DL> |
---|
526 | |
---|
527 | <!-- ============ METHOD DETAIL ========== --> |
---|
528 | |
---|
529 | <A NAME="method_detail"><!-- --></A> |
---|
530 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
531 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
532 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
533 | <B>Method Detail</B></FONT></TH> |
---|
534 | </TR> |
---|
535 | </TABLE> |
---|
536 | |
---|
537 | <A NAME="stringifyException(java.lang.Throwable)"><!-- --></A><H3> |
---|
538 | stringifyException</H3> |
---|
539 | <PRE> |
---|
540 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>stringifyException</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> e)</PRE> |
---|
541 | <DL> |
---|
542 | <DD>Make a string representation of the exception. |
---|
543 | <P> |
---|
544 | <DD><DL> |
---|
545 | <DT><B>Parameters:</B><DD><CODE>e</CODE> - The exception to stringify |
---|
546 | <DT><B>Returns:</B><DD>A string with exception name and call stack.</DL> |
---|
547 | </DD> |
---|
548 | </DL> |
---|
549 | <HR> |
---|
550 | |
---|
551 | <A NAME="simpleHostname(java.lang.String)"><!-- --></A><H3> |
---|
552 | simpleHostname</H3> |
---|
553 | <PRE> |
---|
554 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>simpleHostname</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fullHostname)</PRE> |
---|
555 | <DL> |
---|
556 | <DD>Given a full hostname, return the word upto the first dot. |
---|
557 | <P> |
---|
558 | <DD><DL> |
---|
559 | <DT><B>Parameters:</B><DD><CODE>fullHostname</CODE> - the full hostname |
---|
560 | <DT><B>Returns:</B><DD>the hostname to the first dot</DL> |
---|
561 | </DD> |
---|
562 | </DL> |
---|
563 | <HR> |
---|
564 | |
---|
565 | <A NAME="humanReadableInt(long)"><!-- --></A><H3> |
---|
566 | humanReadableInt</H3> |
---|
567 | <PRE> |
---|
568 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>humanReadableInt</B>(long number)</PRE> |
---|
569 | <DL> |
---|
570 | <DD>Given an integer, return a string that is in an approximate, but human |
---|
571 | readable format. |
---|
572 | It uses the bases 'k', 'm', and 'g' for 1024, 1024**2, and 1024**3. |
---|
573 | <P> |
---|
574 | <DD><DL> |
---|
575 | <DT><B>Parameters:</B><DD><CODE>number</CODE> - the number to format |
---|
576 | <DT><B>Returns:</B><DD>a human readable form of the integer</DL> |
---|
577 | </DD> |
---|
578 | </DL> |
---|
579 | <HR> |
---|
580 | |
---|
581 | <A NAME="formatPercent(double, int)"><!-- --></A><H3> |
---|
582 | formatPercent</H3> |
---|
583 | <PRE> |
---|
584 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>formatPercent</B>(double done, |
---|
585 | int digits)</PRE> |
---|
586 | <DL> |
---|
587 | <DD>Format a percentage for presentation to the user. |
---|
588 | <P> |
---|
589 | <DD><DL> |
---|
590 | <DT><B>Parameters:</B><DD><CODE>done</CODE> - the percentage to format (0.0 to 1.0)<DD><CODE>digits</CODE> - the number of digits past the decimal point |
---|
591 | <DT><B>Returns:</B><DD>a string representation of the percentage</DL> |
---|
592 | </DD> |
---|
593 | </DL> |
---|
594 | <HR> |
---|
595 | |
---|
596 | <A NAME="arrayToString(java.lang.String[])"><!-- --></A><H3> |
---|
597 | arrayToString</H3> |
---|
598 | <PRE> |
---|
599 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>arrayToString</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] strs)</PRE> |
---|
600 | <DL> |
---|
601 | <DD>Given an array of strings, return a comma-separated list of its elements. |
---|
602 | <P> |
---|
603 | <DD><DL> |
---|
604 | <DT><B>Parameters:</B><DD><CODE>strs</CODE> - Array of strings |
---|
605 | <DT><B>Returns:</B><DD>Empty string if strs.length is 0, comma separated list of strings |
---|
606 | otherwise</DL> |
---|
607 | </DD> |
---|
608 | </DL> |
---|
609 | <HR> |
---|
610 | |
---|
611 | <A NAME="byteToHexString(byte[], int, int)"><!-- --></A><H3> |
---|
612 | byteToHexString</H3> |
---|
613 | <PRE> |
---|
614 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>byteToHexString</B>(byte[] bytes, |
---|
615 | int start, |
---|
616 | int end)</PRE> |
---|
617 | <DL> |
---|
618 | <DD>Given an array of bytes it will convert the bytes to a hex string |
---|
619 | representation of the bytes |
---|
620 | <P> |
---|
621 | <DD><DL> |
---|
622 | <DT><B>Parameters:</B><DD><CODE>bytes</CODE> - <DD><CODE>start</CODE> - start index, inclusively<DD><CODE>end</CODE> - end index, exclusively |
---|
623 | <DT><B>Returns:</B><DD>hex string representation of the byte array</DL> |
---|
624 | </DD> |
---|
625 | </DL> |
---|
626 | <HR> |
---|
627 | |
---|
628 | <A NAME="byteToHexString(byte[])"><!-- --></A><H3> |
---|
629 | byteToHexString</H3> |
---|
630 | <PRE> |
---|
631 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>byteToHexString</B>(byte[] bytes)</PRE> |
---|
632 | <DL> |
---|
633 | <DD>Same as byteToHexString(bytes, 0, bytes.length). |
---|
634 | <P> |
---|
635 | <DD><DL> |
---|
636 | </DL> |
---|
637 | </DD> |
---|
638 | </DL> |
---|
639 | <HR> |
---|
640 | |
---|
641 | <A NAME="hexStringToByte(java.lang.String)"><!-- --></A><H3> |
---|
642 | hexStringToByte</H3> |
---|
643 | <PRE> |
---|
644 | public static byte[] <B>hexStringToByte</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> hex)</PRE> |
---|
645 | <DL> |
---|
646 | <DD>Given a hexstring this will return the byte array corresponding to the |
---|
647 | string |
---|
648 | <P> |
---|
649 | <DD><DL> |
---|
650 | <DT><B>Parameters:</B><DD><CODE>hex</CODE> - the hex String array |
---|
651 | <DT><B>Returns:</B><DD>a byte array that is a hex string representation of the given |
---|
652 | string. The size of the byte array is therefore hex.length/2</DL> |
---|
653 | </DD> |
---|
654 | </DL> |
---|
655 | <HR> |
---|
656 | |
---|
657 | <A NAME="uriToString(java.net.URI[])"><!-- --></A><H3> |
---|
658 | uriToString</H3> |
---|
659 | <PRE> |
---|
660 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>uriToString</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</A>[] uris)</PRE> |
---|
661 | <DL> |
---|
662 | <DD><DL> |
---|
663 | <DT><B>Parameters:</B><DD><CODE>uris</CODE> - </DL> |
---|
664 | </DD> |
---|
665 | </DL> |
---|
666 | <HR> |
---|
667 | |
---|
668 | <A NAME="stringToURI(java.lang.String[])"><!-- --></A><H3> |
---|
669 | stringToURI</H3> |
---|
670 | <PRE> |
---|
671 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</A>[] <B>stringToURI</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] str)</PRE> |
---|
672 | <DL> |
---|
673 | <DD><DL> |
---|
674 | <DT><B>Parameters:</B><DD><CODE>str</CODE> - </DL> |
---|
675 | </DD> |
---|
676 | </DL> |
---|
677 | <HR> |
---|
678 | |
---|
679 | <A NAME="stringToPath(java.lang.String[])"><!-- --></A><H3> |
---|
680 | stringToPath</H3> |
---|
681 | <PRE> |
---|
682 | public static <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A>[] <B>stringToPath</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] str)</PRE> |
---|
683 | <DL> |
---|
684 | <DD><DL> |
---|
685 | <DT><B>Parameters:</B><DD><CODE>str</CODE> - </DL> |
---|
686 | </DD> |
---|
687 | </DL> |
---|
688 | <HR> |
---|
689 | |
---|
690 | <A NAME="formatTimeDiff(long, long)"><!-- --></A><H3> |
---|
691 | formatTimeDiff</H3> |
---|
692 | <PRE> |
---|
693 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>formatTimeDiff</B>(long finishTime, |
---|
694 | long startTime)</PRE> |
---|
695 | <DL> |
---|
696 | <DD>Given a finish and start time in long milliseconds, returns a |
---|
697 | String in the format Xhrs, Ymins, Z sec, for the time difference between two times. |
---|
698 | If finish time comes before start time then negative valeus of X, Y and Z wil return. |
---|
699 | <P> |
---|
700 | <DD><DL> |
---|
701 | <DT><B>Parameters:</B><DD><CODE>finishTime</CODE> - finish time<DD><CODE>startTime</CODE> - start time</DL> |
---|
702 | </DD> |
---|
703 | </DL> |
---|
704 | <HR> |
---|
705 | |
---|
706 | <A NAME="formatTime(long)"><!-- --></A><H3> |
---|
707 | formatTime</H3> |
---|
708 | <PRE> |
---|
709 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>formatTime</B>(long timeDiff)</PRE> |
---|
710 | <DL> |
---|
711 | <DD>Given the time in long milliseconds, returns a |
---|
712 | String in the format Xhrs, Ymins, Z sec. |
---|
713 | <P> |
---|
714 | <DD><DL> |
---|
715 | <DT><B>Parameters:</B><DD><CODE>timeDiff</CODE> - The time difference to format</DL> |
---|
716 | </DD> |
---|
717 | </DL> |
---|
718 | <HR> |
---|
719 | |
---|
720 | <A NAME="getFormattedTimeWithDiff(java.text.DateFormat, long, long)"><!-- --></A><H3> |
---|
721 | getFormattedTimeWithDiff</H3> |
---|
722 | <PRE> |
---|
723 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getFormattedTimeWithDiff</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/text/DateFormat.html?is-external=true" title="class or interface in java.text">DateFormat</A> dateFormat, |
---|
724 | long finishTime, |
---|
725 | long startTime)</PRE> |
---|
726 | <DL> |
---|
727 | <DD>Formats time in ms and appends difference (finishTime - startTime) |
---|
728 | as returned by formatTimeDiff(). |
---|
729 | If finish time is 0, empty string is returned, if start time is 0 |
---|
730 | then difference is not appended to return value. |
---|
731 | <P> |
---|
732 | <DD><DL> |
---|
733 | <DT><B>Parameters:</B><DD><CODE>dateFormat</CODE> - date format to use<DD><CODE>finishTime</CODE> - fnish time<DD><CODE>startTime</CODE> - start time |
---|
734 | <DT><B>Returns:</B><DD>formatted value.</DL> |
---|
735 | </DD> |
---|
736 | </DL> |
---|
737 | <HR> |
---|
738 | |
---|
739 | <A NAME="getStrings(java.lang.String)"><!-- --></A><H3> |
---|
740 | getStrings</H3> |
---|
741 | <PRE> |
---|
742 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>getStrings</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str)</PRE> |
---|
743 | <DL> |
---|
744 | <DD>Returns an arraylist of strings. |
---|
745 | <P> |
---|
746 | <DD><DL> |
---|
747 | <DT><B>Parameters:</B><DD><CODE>str</CODE> - the comma seperated string values |
---|
748 | <DT><B>Returns:</B><DD>the arraylist of the comma seperated string values</DL> |
---|
749 | </DD> |
---|
750 | </DL> |
---|
751 | <HR> |
---|
752 | |
---|
753 | <A NAME="getStringCollection(java.lang.String)"><!-- --></A><H3> |
---|
754 | getStringCollection</H3> |
---|
755 | <PRE> |
---|
756 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> <B>getStringCollection</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str)</PRE> |
---|
757 | <DL> |
---|
758 | <DD>Returns a collection of strings. |
---|
759 | <P> |
---|
760 | <DD><DL> |
---|
761 | <DT><B>Parameters:</B><DD><CODE>str</CODE> - comma seperated string values |
---|
762 | <DT><B>Returns:</B><DD>an <code>ArrayList</code> of string values</DL> |
---|
763 | </DD> |
---|
764 | </DL> |
---|
765 | <HR> |
---|
766 | |
---|
767 | <A NAME="split(java.lang.String)"><!-- --></A><H3> |
---|
768 | split</H3> |
---|
769 | <PRE> |
---|
770 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>split</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str)</PRE> |
---|
771 | <DL> |
---|
772 | <DD>Split a string using the default separator |
---|
773 | <P> |
---|
774 | <DD><DL> |
---|
775 | <DT><B>Parameters:</B><DD><CODE>str</CODE> - a string that may have escaped separator |
---|
776 | <DT><B>Returns:</B><DD>an array of strings</DL> |
---|
777 | </DD> |
---|
778 | </DL> |
---|
779 | <HR> |
---|
780 | |
---|
781 | <A NAME="split(java.lang.String, char, char)"><!-- --></A><H3> |
---|
782 | split</H3> |
---|
783 | <PRE> |
---|
784 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>split</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str, |
---|
785 | char escapeChar, |
---|
786 | char separator)</PRE> |
---|
787 | <DL> |
---|
788 | <DD>Split a string using the given separator |
---|
789 | <P> |
---|
790 | <DD><DL> |
---|
791 | <DT><B>Parameters:</B><DD><CODE>str</CODE> - a string that may have escaped separator<DD><CODE>escapeChar</CODE> - a char that be used to escape the separator<DD><CODE>separator</CODE> - a separator char |
---|
792 | <DT><B>Returns:</B><DD>an array of strings</DL> |
---|
793 | </DD> |
---|
794 | </DL> |
---|
795 | <HR> |
---|
796 | |
---|
797 | <A NAME="findNext(java.lang.String, char, char, int, java.lang.StringBuilder)"><!-- --></A><H3> |
---|
798 | findNext</H3> |
---|
799 | <PRE> |
---|
800 | public static int <B>findNext</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str, |
---|
801 | char separator, |
---|
802 | char escapeChar, |
---|
803 | int start, |
---|
804 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</A> split)</PRE> |
---|
805 | <DL> |
---|
806 | <DD>Finds the first occurrence of the separator character ignoring the escaped |
---|
807 | separators starting from the index. Note the substring between the index |
---|
808 | and the position of the separator is passed. |
---|
809 | <P> |
---|
810 | <DD><DL> |
---|
811 | <DT><B>Parameters:</B><DD><CODE>str</CODE> - the source string<DD><CODE>separator</CODE> - the character to find<DD><CODE>escapeChar</CODE> - character used to escape<DD><CODE>start</CODE> - from where to search<DD><CODE>split</CODE> - used to pass back the extracted string</DL> |
---|
812 | </DD> |
---|
813 | </DL> |
---|
814 | <HR> |
---|
815 | |
---|
816 | <A NAME="escapeString(java.lang.String)"><!-- --></A><H3> |
---|
817 | escapeString</H3> |
---|
818 | <PRE> |
---|
819 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>escapeString</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str)</PRE> |
---|
820 | <DL> |
---|
821 | <DD>Escape commas in the string using the default escape char |
---|
822 | <P> |
---|
823 | <DD><DL> |
---|
824 | <DT><B>Parameters:</B><DD><CODE>str</CODE> - a string |
---|
825 | <DT><B>Returns:</B><DD>an escaped string</DL> |
---|
826 | </DD> |
---|
827 | </DL> |
---|
828 | <HR> |
---|
829 | |
---|
830 | <A NAME="escapeString(java.lang.String, char, char)"><!-- --></A><H3> |
---|
831 | escapeString</H3> |
---|
832 | <PRE> |
---|
833 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>escapeString</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str, |
---|
834 | char escapeChar, |
---|
835 | char charToEscape)</PRE> |
---|
836 | <DL> |
---|
837 | <DD>Escape <code>charToEscape</code> in the string |
---|
838 | with the escape char <code>escapeChar</code> |
---|
839 | <P> |
---|
840 | <DD><DL> |
---|
841 | <DT><B>Parameters:</B><DD><CODE>str</CODE> - string<DD><CODE>escapeChar</CODE> - escape char<DD><CODE>charToEscape</CODE> - the char to be escaped |
---|
842 | <DT><B>Returns:</B><DD>an escaped string</DL> |
---|
843 | </DD> |
---|
844 | </DL> |
---|
845 | <HR> |
---|
846 | |
---|
847 | <A NAME="escapeString(java.lang.String, char, char[])"><!-- --></A><H3> |
---|
848 | escapeString</H3> |
---|
849 | <PRE> |
---|
850 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>escapeString</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str, |
---|
851 | char escapeChar, |
---|
852 | char[] charsToEscape)</PRE> |
---|
853 | <DL> |
---|
854 | <DD><DL> |
---|
855 | <DT><B>Parameters:</B><DD><CODE>charsToEscape</CODE> - array of characters to be escaped</DL> |
---|
856 | </DD> |
---|
857 | </DL> |
---|
858 | <HR> |
---|
859 | |
---|
860 | <A NAME="unEscapeString(java.lang.String)"><!-- --></A><H3> |
---|
861 | unEscapeString</H3> |
---|
862 | <PRE> |
---|
863 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>unEscapeString</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str)</PRE> |
---|
864 | <DL> |
---|
865 | <DD>Unescape commas in the string using the default escape char |
---|
866 | <P> |
---|
867 | <DD><DL> |
---|
868 | <DT><B>Parameters:</B><DD><CODE>str</CODE> - a string |
---|
869 | <DT><B>Returns:</B><DD>an unescaped string</DL> |
---|
870 | </DD> |
---|
871 | </DL> |
---|
872 | <HR> |
---|
873 | |
---|
874 | <A NAME="unEscapeString(java.lang.String, char, char)"><!-- --></A><H3> |
---|
875 | unEscapeString</H3> |
---|
876 | <PRE> |
---|
877 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>unEscapeString</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str, |
---|
878 | char escapeChar, |
---|
879 | char charToEscape)</PRE> |
---|
880 | <DL> |
---|
881 | <DD>Unescape <code>charToEscape</code> in the string |
---|
882 | with the escape char <code>escapeChar</code> |
---|
883 | <P> |
---|
884 | <DD><DL> |
---|
885 | <DT><B>Parameters:</B><DD><CODE>str</CODE> - string<DD><CODE>escapeChar</CODE> - escape char<DD><CODE>charToEscape</CODE> - the escaped char |
---|
886 | <DT><B>Returns:</B><DD>an unescaped string</DL> |
---|
887 | </DD> |
---|
888 | </DL> |
---|
889 | <HR> |
---|
890 | |
---|
891 | <A NAME="unEscapeString(java.lang.String, char, char[])"><!-- --></A><H3> |
---|
892 | unEscapeString</H3> |
---|
893 | <PRE> |
---|
894 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>unEscapeString</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str, |
---|
895 | char escapeChar, |
---|
896 | char[] charsToEscape)</PRE> |
---|
897 | <DL> |
---|
898 | <DD><DL> |
---|
899 | <DT><B>Parameters:</B><DD><CODE>charsToEscape</CODE> - array of characters to unescape</DL> |
---|
900 | </DD> |
---|
901 | </DL> |
---|
902 | <HR> |
---|
903 | |
---|
904 | <A NAME="getHostname()"><!-- --></A><H3> |
---|
905 | getHostname</H3> |
---|
906 | <PRE> |
---|
907 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getHostname</B>()</PRE> |
---|
908 | <DL> |
---|
909 | <DD>Return hostname without throwing exception. |
---|
910 | <P> |
---|
911 | <DD><DL> |
---|
912 | |
---|
913 | <DT><B>Returns:</B><DD>hostname</DL> |
---|
914 | </DD> |
---|
915 | </DL> |
---|
916 | <HR> |
---|
917 | |
---|
918 | <A NAME="startupShutdownMessage(java.lang.Class, java.lang.String[], org.apache.commons.logging.Log)"><!-- --></A><H3> |
---|
919 | startupShutdownMessage</H3> |
---|
920 | <PRE> |
---|
921 | public static void <B>startupShutdownMessage</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> clazz, |
---|
922 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] args, |
---|
923 | org.apache.commons.logging.Log LOG)</PRE> |
---|
924 | <DL> |
---|
925 | <DD>Print a log message for starting up and shutting down |
---|
926 | <P> |
---|
927 | <DD><DL> |
---|
928 | <DT><B>Parameters:</B><DD><CODE>clazz</CODE> - the class of the server<DD><CODE>args</CODE> - arguments<DD><CODE>LOG</CODE> - the target log object</DL> |
---|
929 | </DD> |
---|
930 | </DL> |
---|
931 | <HR> |
---|
932 | |
---|
933 | <A NAME="escapeHTML(java.lang.String)"><!-- --></A><H3> |
---|
934 | escapeHTML</H3> |
---|
935 | <PRE> |
---|
936 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>escapeHTML</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> string)</PRE> |
---|
937 | <DL> |
---|
938 | <DD>Escapes HTML Special characters present in the string. |
---|
939 | <P> |
---|
940 | <DD><DL> |
---|
941 | <DT><B>Parameters:</B><DD><CODE>string</CODE> - |
---|
942 | <DT><B>Returns:</B><DD>HTML Escaped String representation</DL> |
---|
943 | </DD> |
---|
944 | </DL> |
---|
945 | <HR> |
---|
946 | |
---|
947 | <A NAME="byteDesc(long)"><!-- --></A><H3> |
---|
948 | byteDesc</H3> |
---|
949 | <PRE> |
---|
950 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>byteDesc</B>(long len)</PRE> |
---|
951 | <DL> |
---|
952 | <DD>Return an abbreviated English-language desc of the byte length |
---|
953 | <P> |
---|
954 | <DD><DL> |
---|
955 | </DL> |
---|
956 | </DD> |
---|
957 | </DL> |
---|
958 | <HR> |
---|
959 | |
---|
960 | <A NAME="limitDecimalTo2(double)"><!-- --></A><H3> |
---|
961 | limitDecimalTo2</H3> |
---|
962 | <PRE> |
---|
963 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>limitDecimalTo2</B>(double d)</PRE> |
---|
964 | <DL> |
---|
965 | <DD><DL> |
---|
966 | </DL> |
---|
967 | </DD> |
---|
968 | </DL> |
---|
969 | <!-- ========= END OF CLASS DATA ========= --> |
---|
970 | <HR> |
---|
971 | |
---|
972 | |
---|
973 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
974 | <A NAME="navbar_bottom"><!-- --></A> |
---|
975 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
976 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
977 | <TR> |
---|
978 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
979 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
980 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
981 | <TR ALIGN="center" VALIGN="top"> |
---|
982 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
983 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
984 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
985 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StringUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
986 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
987 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
988 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
989 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
990 | </TR> |
---|
991 | </TABLE> |
---|
992 | </TD> |
---|
993 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
994 | </EM> |
---|
995 | </TD> |
---|
996 | </TR> |
---|
997 | |
---|
998 | <TR> |
---|
999 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
1000 | <A HREF="../../../../org/apache/hadoop/util/Shell.ShellCommandExecutor.html" title="class in org.apache.hadoop.util"><B>PREV CLASS</B></A> |
---|
1001 | <A HREF="../../../../org/apache/hadoop/util/StringUtils.TraditionalBinaryPrefix.html" title="enum in org.apache.hadoop.util"><B>NEXT CLASS</B></A></FONT></TD> |
---|
1002 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
1003 | <A HREF="../../../../index.html?org/apache/hadoop/util/StringUtils.html" target="_top"><B>FRAMES</B></A> |
---|
1004 | <A HREF="StringUtils.html" target="_top"><B>NO FRAMES</B></A> |
---|
1005 | <SCRIPT type="text/javascript"> |
---|
1006 | <!-- |
---|
1007 | if(window==top) { |
---|
1008 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
1009 | } |
---|
1010 | //--> |
---|
1011 | </SCRIPT> |
---|
1012 | <NOSCRIPT> |
---|
1013 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
1014 | </NOSCRIPT> |
---|
1015 | |
---|
1016 | |
---|
1017 | </FONT></TD> |
---|
1018 | </TR> |
---|
1019 | <TR> |
---|
1020 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
1021 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
1022 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
1023 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
1024 | </TR> |
---|
1025 | </TABLE> |
---|
1026 | <A NAME="skip-navbar_bottom"></A> |
---|
1027 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
1028 | |
---|
1029 | <HR> |
---|
1030 | Copyright © 2009 The Apache Software Foundation |
---|
1031 | </BODY> |
---|
1032 | </HTML> |
---|