| java.lang.Object org.webdocwf.util.i18njdbc.Utils
Utils | public class Utils (Code) | | Utility methods for i18n jdbc.
author: Zoran Milakovic author: Zeljko Kovacevic |
bytesToHexString | public static String bytesToHexString(byte[] b)(Code) | | This method transform binary object to string object
Parameters: b - is array of bytes which represents binary object string representation of binary object |
compareValues | public static boolean compareValues(String valA, String valB)(Code) | | Compare two values.
Parameters: valA - first value Parameters: valB - second value true if values are equal, false otherwise |
handleBinaryString | public static String handleBinaryString(String binaryString, List binaryStreamObjectList)(Code) | | |
hexStringToBytes | public static byte[] hexStringToBytes(String val)(Code) | | This method transform string object to binary object (array of bytes)
Parameters: val - is string representation of binary object binary object |
replaceAll | public static String replaceAll(String input, String forReplace, String replaceWith)(Code) | | Replace all occurence of forReplace with replaceWith in input string.
Parameters: input - represents input string Parameters: forReplace - represents substring for replace Parameters: replaceWith - represents replaced string value new string with replaced values |
replaceKeywords | public static String replaceKeywords(String s, HashMap oldValues)(Code) | | Method replace all keywords in string passed as parameter.
Parameters: s - String within replace should be done. Parameters: oldValues - HashMap with old values. String with special character array instead of keywords. |
replaceKeywordsBack | public static String replaceKeywordsBack(String s, HashMap oldValues)(Code) | | Method replace all keywords in string passed as parameter.
Parameters: s - String within replace should be done. Parameters: oldValues - HashMap with old values. String with special character array instead of keywords. |
replaceLineBrakesAndCarrReturn | public static String[] replaceLineBrakesAndCarrReturn(String[] toReplace, String lineBreakEscape, String carriageReturnEscape)(Code) | | |
|
|