it.assist.jrecordbind.padders
Class ZeroRightPadder

java.lang.Object
  extended by it.assist.jrecordbind.padders.ZeroRightPadder
All Implemented Interfaces:
Padder

public class ZeroRightPadder
extends Object


Constructor Summary
ZeroRightPadder()
           
 
Method Summary
protected  String buildPad(String string, int totalLength)
           
 String pad(String string, int totalLength)
          Pads a string to the given length
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZeroRightPadder

public ZeroRightPadder()
Method Detail

pad

public String pad(String string,
                  int totalLength)
Description copied from interface: Padder
Pads a string to the given length

Parameters:
string - the string to pad
totalLength - the length of the final string
Returns:
the padded string

buildPad

protected String buildPad(String string,
                          int totalLength)


Copyright © 2009-2011. All Rights Reserved.