public class Tool4String
extends java.lang.Object
Tool4String
provides string functionsConstructor and Description |
---|
Tool4String()
The constructor
Tool4String creates a new instance(object) of the class. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
completeXMLTag(java.lang.String tag,
java.lang.String source)
The method
completeXMLTag completes xml tags with end tag. |
java.lang.String |
cryptString(java.lang.String text)
The method
cryptString crypts a string. |
java.lang.String |
decryptString(java.lang.String text)
The method
decryptString decrypts a string. |
java.lang.String |
getChars(java.lang.String character,
int len)
The method
getChars creates a string of characters. |
java.lang.String |
getSpaces(int len)
The method
getSpaces creates a string of spaces. |
java.lang.String |
preInsertString(java.lang.String source,
java.lang.String target,
java.lang.String insert)
The method
preInsertString sets the insert before the target in a given text(s). |
java.lang.String |
replaceCharsForUrlReceve(java.lang.String input)
The method
replaceCharsForUrlReceve replaces chars of a string with chars to receve with url. |
java.lang.String |
replaceCharsForUrlSend(java.lang.String input)
The method
replaceCharsForUrlSend replaces chars of a string with chars to send with url. |
java.lang.String |
replaceCharsWithHTML(java.lang.String input)
The method
replaceCharsWithHTML replaces chars of a string with the html complements. |
java.lang.String |
replaceCharsWithRtf(java.lang.String text)
The method
replaceCharsWithRtf translates the text. |
java.lang.String |
replaceCharsWithSQL(java.lang.String input)
The method
replaceCharsWithSQL replaces chars of a string with the sql complements. |
java.lang.String |
replaceCharsWithXML(java.lang.String input)
The method
replaceCharsWithXML replaces chars of a string with the xml complements. |
java.lang.String |
replaceCharsWithXMLGTLT(java.lang.String input,
boolean gtlt)
The method
replaceCharsWithXMLGTLT replaces chars of a string with the xml complements. |
java.lang.String |
replaceCharsWithXMLGTLT(java.lang.String input,
boolean gtlt,
boolean amp)
The method
replaceCharsWithXMLGTLT replaces chars of a string with the xml complements. |
java.lang.String |
replaceRtfWithChars(java.lang.String text)
The method
replaceRtfWithChars translates the text. |
java.lang.String |
replaceSQLWithChars(java.lang.String input)
The method
replaceSQLWithCharsL replaces sql codes of a string with the chars complements. |
java.lang.String |
replaceString(int from,
java.lang.String source,
java.lang.String target,
java.lang.String replace)
The method
replaceString replaces in a given listing one occurence of the target with the text. |
java.lang.String |
replaceString(java.lang.String source,
java.lang.String target,
java.lang.String replace)
The method
replaceString replaces in a given listing one occurence of the target with the text |
java.lang.String |
replaceToken(java.lang.String listing,
java.lang.String token,
java.lang.String text)
The method
replaceToken replaces in a given listing all tokens with the text. |
java.util.ArrayList |
stringList(java.lang.String text,
int len)
The method
stringList converts a string in a list of substrings. |
public Tool4String()
Tool4String
creates a new instance(object) of the class.public java.lang.String replaceCharsForUrlSend(java.lang.String input)
replaceCharsForUrlSend
replaces chars of a string with chars to send with url.input
- the string.public java.lang.String replaceCharsForUrlReceve(java.lang.String input)
replaceCharsForUrlReceve
replaces chars of a string with chars to receve with url.input
- the string.public java.lang.String replaceCharsWithHTML(java.lang.String input)
replaceCharsWithHTML
replaces chars of a string with the html complements.input
- the string.public java.lang.String replaceCharsWithXML(java.lang.String input)
replaceCharsWithXML
replaces chars of a string with the xml complements.input
- the string.public java.lang.String replaceCharsWithXMLGTLT(java.lang.String input, boolean gtlt)
replaceCharsWithXMLGTLT
replaces chars of a string with the xml complements.input
- the string.gtlt
- if true, replace < and >.public java.lang.String replaceCharsWithXMLGTLT(java.lang.String input, boolean gtlt, boolean amp)
replaceCharsWithXMLGTLT
replaces chars of a string with the xml complements.input
- the string.gtlt
- if true, replace < and >.amp
- if true, replace &.public java.lang.String replaceCharsWithSQL(java.lang.String input)
replaceCharsWithSQL
replaces chars of a string with the sql complements.input
- the string.public java.lang.String replaceSQLWithChars(java.lang.String input)
replaceSQLWithCharsL
replaces sql codes of a string with the chars complements.input
- the string.public java.lang.String replaceToken(java.lang.String listing, java.lang.String token, java.lang.String text)
replaceToken
replaces in a given listing all tokens with the text.listing
- the text to work with.token
- the token to be replaced.text
- the text to replace the token.public java.lang.String replaceString(int from, java.lang.String source, java.lang.String target, java.lang.String replace)
replaceString
replaces in a given listing one occurence of the target with the text.from
- start of search.source
- the text to work with.target
- the text to be replaced.replace
- the text to replace the target.public java.lang.String replaceString(java.lang.String source, java.lang.String target, java.lang.String replace)
replaceString
replaces in a given listing one occurence of the target with the textsource
- the text to work with.target
- the text to be replaced.replace
- the text to replace the target.public java.lang.String preInsertString(java.lang.String source, java.lang.String target, java.lang.String insert)
preInsertString
sets the insert before the target in a given text(s).source
- the text to work with.target
- the text sign, to set the insert before.insert
- the text to set before the target.public java.lang.String getSpaces(int len)
getSpaces
creates a string of spaces.len
- counter of spacespublic java.lang.String getChars(java.lang.String character, int len)
getChars
creates a string of characters.character
- the characters.len
- counter of characters.public java.lang.String completeXMLTag(java.lang.String tag, java.lang.String source)
completeXMLTag
completes xml tags with end tag.tag,
- the tag.source
- the text to work with.public java.util.ArrayList stringList(java.lang.String text, int len)
stringList
converts a string in a list of substrings.text
- the text to convert.len
- the length of the substrings.public java.lang.String replaceCharsWithRtf(java.lang.String text)
replaceCharsWithRtf
translates the text.text
- the text to translate.public java.lang.String replaceRtfWithChars(java.lang.String text)
replaceRtfWithChars
translates the text.text
- the text to translate.public java.lang.String cryptString(java.lang.String text)
cryptString
crypts a string.text
- the string.public java.lang.String decryptString(java.lang.String text)
decryptString
decrypts a string.text
- the string.