org.jpedal.utils
Class Strip

java.lang.Object
  extended by org.jpedal.utils.Strip

public class Strip
extends java.lang.Object

general functionality to manipulate and trim string values


Constructor Summary
Strip()
           
 
Method Summary
static java.lang.String checkRemoveLeadingSlach(java.lang.String command)
          checks for / at start of string and remove
static java.lang.String convertToText(java.lang.String input)
          Strip out XML tags and put in a tab
static java.lang.String removeArrayDeleminators(java.lang.String value)
          strip the []
static java.lang.String removeMultipleSpacesAndReturns(java.lang.String data)
          remove multiple spaces and returns so just single value if multiples together - if it fails will just return data
static java.lang.String stripAllSpaces(java.lang.String data)
          removes all the spaces
static java.lang.StringBuffer stripAllSpaces(java.lang.StringBuffer text)
          removes all the spaces
static java.lang.StringBuffer stripAmpHash(java.lang.StringBuffer current_text)
           
static java.lang.StringBuffer stripArrows(java.lang.StringBuffer text)
          removes all the spaces
static java.lang.String stripComment(java.lang.String value)
          remove any comment from a string in Storypad menu comments are prefixed with a **
static java.lang.String stripSpaces(java.lang.String data)
          remove leading spaces
static java.lang.StringBuffer stripXML(java.lang.String raw_data)
          remove any XML tokens to leave just text - this could be optimised further
static java.lang.StringBuffer stripXML(java.lang.StringBuffer all_tags)
          remove any XML tokens to leave just text - this could be optimised further
static java.lang.StringBuffer stripXMLArrows(java.lang.StringBuffer all_tags)
          remove any XML tokens to leave just text - this could be optimised further
static java.lang.StringBuffer trim(java.lang.StringBuffer content_buffer)
          strip the []
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Strip

public Strip()
Method Detail

stripXML

public static java.lang.StringBuffer stripXML(java.lang.String raw_data)
remove any XML tokens to leave just text - this could be optimised further


stripXML

public static java.lang.StringBuffer stripXML(java.lang.StringBuffer all_tags)
remove any XML tokens to leave just text - this could be optimised further


stripXMLArrows

public static java.lang.StringBuffer stripXMLArrows(java.lang.StringBuffer all_tags)
remove any XML tokens to leave just text - this could be optimised further


removeArrayDeleminators

public static final java.lang.String removeArrayDeleminators(java.lang.String value)
strip the []


trim

public static final java.lang.StringBuffer trim(java.lang.StringBuffer content_buffer)
strip the []


removeMultipleSpacesAndReturns

public static final java.lang.String removeMultipleSpacesAndReturns(java.lang.String data)
remove multiple spaces and returns so just single value if multiples together - if it fails will just return data


stripSpaces

public static final java.lang.String stripSpaces(java.lang.String data)
remove leading spaces


stripAllSpaces

public static final java.lang.String stripAllSpaces(java.lang.String data)
removes all the spaces


stripArrows

public static final java.lang.StringBuffer stripArrows(java.lang.StringBuffer text)
removes all the spaces


stripAllSpaces

public static final java.lang.StringBuffer stripAllSpaces(java.lang.StringBuffer text)
removes all the spaces


convertToText

public static final java.lang.String convertToText(java.lang.String input)
Strip out XML tags and put in a tab


stripComment

public static final java.lang.String stripComment(java.lang.String value)
remove any comment from a string in Storypad menu comments are prefixed with a **


checkRemoveLeadingSlach

public static final java.lang.String checkRemoveLeadingSlach(java.lang.String command)
checks for / at start of string and remove


stripAmpHash

public static java.lang.StringBuffer stripAmpHash(java.lang.StringBuffer current_text)