Blackbird
Class SpaceRemover

java.lang.Object
  extended by Blackbird.SpaceRemover

public class SpaceRemover
extends java.lang.Object

Blackbird Encryption Project.
Copyright 2008 Blackbird Encryption Project - www.ravenproject.us

   This file is part of Blackbird.

Blackbird is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Blackbird is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Blackbird. If not, see <http://www.gnu.org/licenses/>.
Notes: This class created as a quick tool for removal of spaces from array elements before being sent into the lower level decypt calls. Spaces being parsed, or attempts for it, in the integer parsing routines, were crashing the lower level decrypt calls. http://www.regular-expressions.info/java.html Changes


Constructor Summary
SpaceRemover()
           
 
Method Summary
static java.lang.String lcrtrim(java.lang.String source)
          This simply removes all spaces from the string.
static java.lang.String lrtrim(java.lang.String source)
          lrtrim uses both ltrim and rtrim to remove blank spaces that flank the needed value in a string.
static java.lang.String ltrim(java.lang.String source)
          ltrim subroutine using Java string ops to remove leading blank spaces in a string.
static java.lang.String rtrim(java.lang.String source)
          rtrim subroutine using Java string ops to remove traling blank spaces in a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceRemover

public SpaceRemover()
Method Detail

lcrtrim

public static java.lang.String lcrtrim(java.lang.String source)
This simply removes all spaces from the string.

Parameters:
source -
Returns:

ltrim

public static java.lang.String ltrim(java.lang.String source)
ltrim subroutine using Java string ops to remove leading blank spaces in a string.

Parameters:
source -
Returns:

rtrim

public static java.lang.String rtrim(java.lang.String source)
rtrim subroutine using Java string ops to remove traling blank spaces in a string.

Parameters:
source -
Returns:

lrtrim

public static java.lang.String lrtrim(java.lang.String source)
lrtrim uses both ltrim and rtrim to remove blank spaces that flank the needed value in a string.

Parameters:
source -
Returns: