001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.kernel.util;
022:
023: /**
024: * <a href="StringUtil_IW.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class StringUtil_IW {
030: public static StringUtil_IW getInstance() {
031: return _instance;
032: }
033:
034: public java.lang.String add(java.lang.String s, java.lang.String add) {
035: return StringUtil.add(s, add);
036: }
037:
038: public java.lang.String add(java.lang.String s,
039: java.lang.String add, java.lang.String delimiter) {
040: return StringUtil.add(s, add, delimiter);
041: }
042:
043: public java.lang.String add(java.lang.String s,
044: java.lang.String add, java.lang.String delimiter,
045: boolean allowDuplicates) {
046: return StringUtil.add(s, add, delimiter, allowDuplicates);
047: }
048:
049: public java.lang.String bytesToHexString(byte[] bytes) {
050: return StringUtil.bytesToHexString(bytes);
051: }
052:
053: public boolean contains(java.lang.String s, java.lang.String text) {
054: return StringUtil.contains(s, text);
055: }
056:
057: public boolean contains(java.lang.String s, java.lang.String text,
058: java.lang.String delimiter) {
059: return StringUtil.contains(s, text, delimiter);
060: }
061:
062: public int count(java.lang.String s, java.lang.String text) {
063: return StringUtil.count(s, text);
064: }
065:
066: public boolean endsWith(java.lang.String s, char end) {
067: return StringUtil.endsWith(s, end);
068: }
069:
070: public boolean endsWith(java.lang.String s, java.lang.String end) {
071: return StringUtil.endsWith(s, end);
072: }
073:
074: public java.lang.String extractChars(java.lang.String s) {
075: return StringUtil.extractChars(s);
076: }
077:
078: public java.lang.String extractDigits(java.lang.String s) {
079: return StringUtil.extractDigits(s);
080: }
081:
082: public java.lang.String extractFirst(java.lang.String s,
083: java.lang.String delimiter) {
084: return StringUtil.extractFirst(s, delimiter);
085: }
086:
087: public java.lang.String extractLast(java.lang.String s,
088: java.lang.String delimiter) {
089: return StringUtil.extractLast(s, delimiter);
090: }
091:
092: public java.lang.String highlight(java.lang.String s,
093: java.lang.String keywords) {
094: return StringUtil.highlight(s, keywords);
095: }
096:
097: public java.lang.String highlight(java.lang.String s,
098: java.lang.String keywords, java.lang.String highlight1,
099: java.lang.String highlight2) {
100: return StringUtil
101: .highlight(s, keywords, highlight1, highlight2);
102: }
103:
104: public java.lang.String lowerCase(java.lang.String s) {
105: return StringUtil.lowerCase(s);
106: }
107:
108: public java.lang.String merge(boolean[] array) {
109: return StringUtil.merge(array);
110: }
111:
112: public java.lang.String merge(boolean[] array,
113: java.lang.String delimiter) {
114: return StringUtil.merge(array, delimiter);
115: }
116:
117: public java.lang.String merge(int[] array) {
118: return StringUtil.merge(array);
119: }
120:
121: public java.lang.String merge(int[] array,
122: java.lang.String delimiter) {
123: return StringUtil.merge(array, delimiter);
124: }
125:
126: public java.lang.String merge(long[] array) {
127: return StringUtil.merge(array);
128: }
129:
130: public java.lang.String merge(long[] array,
131: java.lang.String delimiter) {
132: return StringUtil.merge(array, delimiter);
133: }
134:
135: public java.lang.String merge(short[] array) {
136: return StringUtil.merge(array);
137: }
138:
139: public java.lang.String merge(short[] array,
140: java.lang.String delimiter) {
141: return StringUtil.merge(array, delimiter);
142: }
143:
144: public java.lang.String merge(java.util.List list) {
145: return StringUtil.merge(list);
146: }
147:
148: public java.lang.String merge(java.util.List list,
149: java.lang.String delimiter) {
150: return StringUtil.merge(list, delimiter);
151: }
152:
153: public java.lang.String merge(java.lang.Object[] array) {
154: return StringUtil.merge(array);
155: }
156:
157: public java.lang.String merge(java.lang.Object[] array,
158: java.lang.String delimiter) {
159: return StringUtil.merge(array, delimiter);
160: }
161:
162: public java.lang.String randomize(java.lang.String s) {
163: return StringUtil.randomize(s);
164: }
165:
166: public java.lang.String read(java.lang.ClassLoader classLoader,
167: java.lang.String name) throws java.io.IOException {
168: return StringUtil.read(classLoader, name);
169: }
170:
171: public java.lang.String read(java.lang.ClassLoader classLoader,
172: java.lang.String name, boolean all)
173: throws java.io.IOException {
174: return StringUtil.read(classLoader, name, all);
175: }
176:
177: public java.lang.String read(java.io.InputStream is)
178: throws java.io.IOException {
179: return StringUtil.read(is);
180: }
181:
182: public java.lang.String remove(java.lang.String s,
183: java.lang.String remove) {
184: return StringUtil.remove(s, remove);
185: }
186:
187: public java.lang.String remove(java.lang.String s,
188: java.lang.String remove, java.lang.String delimiter) {
189: return StringUtil.remove(s, remove, delimiter);
190: }
191:
192: public java.lang.String replace(java.lang.String s, char oldSub,
193: char newSub) {
194: return StringUtil.replace(s, oldSub, newSub);
195: }
196:
197: public java.lang.String replace(java.lang.String s, char oldSub,
198: java.lang.String newSub) {
199: return StringUtil.replace(s, oldSub, newSub);
200: }
201:
202: public java.lang.String replace(java.lang.String s,
203: java.lang.String oldSub, java.lang.String newSub) {
204: return StringUtil.replace(s, oldSub, newSub);
205: }
206:
207: public java.lang.String replace(java.lang.String s,
208: java.lang.String[] oldSubs, java.lang.String[] newSubs) {
209: return StringUtil.replace(s, oldSubs, newSubs);
210: }
211:
212: public java.lang.String replaceValues(java.lang.String s,
213: java.lang.String begin, java.lang.String end,
214: java.util.Map values) {
215: return StringUtil.replaceValues(s, begin, end, values);
216: }
217:
218: public java.lang.String reverse(java.lang.String s) {
219: return StringUtil.reverse(s);
220: }
221:
222: public java.lang.String safePath(java.lang.String path) {
223: return StringUtil.safePath(path);
224: }
225:
226: public java.lang.String shorten(java.lang.String s) {
227: return StringUtil.shorten(s);
228: }
229:
230: public java.lang.String shorten(java.lang.String s, int length) {
231: return StringUtil.shorten(s, length);
232: }
233:
234: public java.lang.String shorten(java.lang.String s,
235: java.lang.String suffix) {
236: return StringUtil.shorten(s, suffix);
237: }
238:
239: public java.lang.String shorten(java.lang.String s, int length,
240: java.lang.String suffix) {
241: return StringUtil.shorten(s, length, suffix);
242: }
243:
244: public java.lang.String[] split(java.lang.String s) {
245: return StringUtil.split(s);
246: }
247:
248: public java.lang.String[] split(java.lang.String s,
249: java.lang.String delimiter) {
250: return StringUtil.split(s, delimiter);
251: }
252:
253: public boolean[] split(java.lang.String s, boolean x) {
254: return StringUtil.split(s, x);
255: }
256:
257: public boolean[] split(java.lang.String s,
258: java.lang.String delimiter, boolean x) {
259: return StringUtil.split(s, delimiter, x);
260: }
261:
262: public double[] split(java.lang.String s, double x) {
263: return StringUtil.split(s, x);
264: }
265:
266: public double[] split(java.lang.String s,
267: java.lang.String delimiter, double x) {
268: return StringUtil.split(s, delimiter, x);
269: }
270:
271: public float[] split(java.lang.String s, float x) {
272: return StringUtil.split(s, x);
273: }
274:
275: public float[] split(java.lang.String s,
276: java.lang.String delimiter, float x) {
277: return StringUtil.split(s, delimiter, x);
278: }
279:
280: public int[] split(java.lang.String s, int x) {
281: return StringUtil.split(s, x);
282: }
283:
284: public int[] split(java.lang.String s, java.lang.String delimiter,
285: int x) {
286: return StringUtil.split(s, delimiter, x);
287: }
288:
289: public long[] split(java.lang.String s, long x) {
290: return StringUtil.split(s, x);
291: }
292:
293: public long[] split(java.lang.String s, java.lang.String delimiter,
294: long x) {
295: return StringUtil.split(s, delimiter, x);
296: }
297:
298: public short[] split(java.lang.String s, short x) {
299: return StringUtil.split(s, x);
300: }
301:
302: public short[] split(java.lang.String s,
303: java.lang.String delimiter, short x) {
304: return StringUtil.split(s, delimiter, x);
305: }
306:
307: public boolean startsWith(java.lang.String s, char begin) {
308: return StringUtil.startsWith(s, begin);
309: }
310:
311: public boolean startsWith(java.lang.String s, java.lang.String start) {
312: return StringUtil.startsWith(s, start);
313: }
314:
315: public java.lang.String stripBetween(java.lang.String s,
316: java.lang.String begin, java.lang.String end) {
317: return StringUtil.stripBetween(s, begin, end);
318: }
319:
320: public java.lang.String trim(java.lang.String s) {
321: return StringUtil.trim(s);
322: }
323:
324: public java.lang.String trim(java.lang.String s, char c) {
325: return StringUtil.trim(s, c);
326: }
327:
328: public java.lang.String trim(java.lang.String s, char[] exceptions) {
329: return StringUtil.trim(s, exceptions);
330: }
331:
332: public java.lang.String trimLeading(java.lang.String s) {
333: return StringUtil.trimLeading(s);
334: }
335:
336: public java.lang.String trimLeading(java.lang.String s, char c) {
337: return StringUtil.trimLeading(s, c);
338: }
339:
340: public java.lang.String trimLeading(java.lang.String s,
341: char[] exceptions) {
342: return StringUtil.trimLeading(s, exceptions);
343: }
344:
345: public java.lang.String trimTrailing(java.lang.String s) {
346: return StringUtil.trimTrailing(s);
347: }
348:
349: public java.lang.String trimTrailing(java.lang.String s, char c) {
350: return StringUtil.trimTrailing(s, c);
351: }
352:
353: public java.lang.String trimTrailing(java.lang.String s,
354: char[] exceptions) {
355: return StringUtil.trimTrailing(s, exceptions);
356: }
357:
358: public java.lang.String upperCase(java.lang.String s) {
359: return StringUtil.upperCase(s);
360: }
361:
362: public java.lang.String upperCaseFirstLetter(java.lang.String s) {
363: return StringUtil.upperCaseFirstLetter(s);
364: }
365:
366: public java.lang.String wrap(java.lang.String text) {
367: return StringUtil.wrap(text);
368: }
369:
370: public java.lang.String wrap(java.lang.String text, int width,
371: java.lang.String lineSeparator) {
372: return StringUtil.wrap(text, width, lineSeparator);
373: }
374:
375: private StringUtil_IW() {
376: }
377:
378: private static StringUtil_IW _instance = new StringUtil_IW();
379: }
|