net.logAnalyzer.utils
Class StringUtils

java.lang.Object
  extended bynet.logAnalyzer.utils.StringUtils

public class StringUtils
extends java.lang.Object

A simple toolkit to manipulate Strings.

Version:
1.0
Author:
Karim REFEYTON

Method Summary
static java.lang.String formatRight(long value, int length, char filler)
          Right format a value using the specified filler.
static java.lang.String formatRight(java.lang.String value, int length, char filler)
          Right format a value using the specified filler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

formatRight

public static java.lang.String formatRight(long value,
                                           int length,
                                           char filler)
Right format a value using the specified filler. If the value is greater than length, the value is returned unchanged.

Parameters:
value - Value to format.
length - Resulting length.
filler - Filler to use.
Returns:
Formatted value or unchanged if greater than the specified length.

formatRight

public static java.lang.String formatRight(java.lang.String value,
                                           int length,
                                           char filler)
Right format a value using the specified filler. If the value is greater than length, the value is returned unchanged.

Parameters:
value - Value to format.
length - Resulting length.
filler - Filler to use.
Returns:
Formatted value or unchanged if greater than the specified length.


Copyright © 2006 null. All Rights Reserved.