|
Open Business Objects for EDI v3.5.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.americancoders.util.Util
class of utility routines
| Field Summary | |
static java.lang.String |
lineFeed
line separator character used by local operating system. |
| Constructor Summary | |
Util()
|
|
| Method Summary | |
static void |
closeOBOEProperty()
use this if you need to reset the property file which is usually left open |
static void |
copyFile(java.lang.String inputFile,
java.lang.String outputFile)
copy file using string file name |
static java.lang.String |
currentDate()
|
static java.lang.String |
currentTime()
|
static void |
deepCopy(java.io.Externalizable fromObj,
java.io.Externalizable toObj)
returns a deep copy of an object JavaWorld Javatip 76 by Dave Miller http://www.javaworld.com/javaworld/javatips/jw-javatip76.html |
static java.lang.String |
denormalizeNonUnicode(java.lang.String inString)
normlizes the string to replace NonUnicode characters. |
static java.lang.String |
getCES()
gets and returns the x12 composite element seperator character |
static java.lang.String |
getOBOEProperty(java.lang.String inString)
|
static boolean |
isInteger(java.lang.String arg)
|
static boolean |
isLog4JNotConfigured()
Returns true if it appears that log4j have been previously configured. |
static void |
main(java.lang.String[] args)
|
static java.lang.String |
normalize(java.lang.String inString)
normlizes the string to remove XML characters. |
static java.lang.String |
normalizeNonUnicode(java.lang.String inString)
normlizes the string to remove NonUnicode characters. |
static boolean |
propertyFileIndicatesDoPrevalidate()
routine to test to see if we want to do the prevalidation logic prevalidation is the function of segments to check to see if there valid by the first id code field in the container |
static boolean |
propertyFileIndicatesThrowParsingException()
routine to test to see if parsers should throw exceptions or based on property in OBOE.properties file "throwParsingException" |
static boolean |
propertyFileIndicatesUseObject()
routine to test to see if parsers allows try to use object files based on property in OBOE.properties file "useObject" |
static java.io.Reader |
removeCRLFFromReader(java.io.Reader inReader)
input blocked data. |
static java.io.InputStream |
removeCRLFFromStream(java.io.InputStream inIS)
input blocked data. |
static java.lang.String |
rightTrim(java.lang.String inString)
removes trailing spaces |
static java.lang.String |
searchForFile(java.lang.String inFilename,
java.lang.String inStopAtDir)
starting with the full file name search down the specified absolute path to find the file |
static void |
setOBOEProperty(java.lang.String inName,
java.lang.String inValue)
|
static void |
setServletContextPath(java.lang.String inPath)
|
static java.lang.String |
unEscape(java.lang.String inString,
java.lang.String inEscString)
removes escape characters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String lineFeed
| Constructor Detail |
public Util()
| Method Detail |
public static void setServletContextPath(java.lang.String inPath)
public static java.lang.String currentDate()
public static java.lang.String currentTime()
public static java.lang.String normalize(java.lang.String inString)
inString - to be normalized
public static java.lang.String normalizeNonUnicode(java.lang.String inString)
inString - to be normalized
public static java.lang.String denormalizeNonUnicode(java.lang.String inString)
inString - to be normalized
public static java.lang.String unEscape(java.lang.String inString,
java.lang.String inEscString)
inString - inEscString -
public static java.lang.String searchForFile(java.lang.String inFilename,
java.lang.String inStopAtDir)
inFilename - - String, full path name for fileinStopAtDir - - String, stop looking after reaching this directory.
OBOEException - - file not foundpublic static boolean propertyFileIndicatesThrowParsingException()
public static boolean propertyFileIndicatesDoPrevalidate()
public static void copyFile(java.lang.String inputFile,
java.lang.String outputFile)
throws java.io.IOException
inputFile - outputFile -
java.io.IOExceptionpublic static boolean propertyFileIndicatesUseObject()
public static java.lang.String rightTrim(java.lang.String inString)
inString -
public static void setOBOEProperty(java.lang.String inName,
java.lang.String inValue)
public static java.lang.String getOBOEProperty(java.lang.String inString)
throws java.io.IOException
java.io.IOExceptionpublic static void closeOBOEProperty()
public static java.lang.String getCES()
public static java.io.InputStream removeCRLFFromStream(java.io.InputStream inIS)
throws java.io.IOException
inIS - InputStream object
java.io.IOException
public static java.io.Reader removeCRLFFromReader(java.io.Reader inReader)
throws java.io.IOException
inReader - Reader object
java.io.IOExceptionpublic static void main(java.lang.String[] args)
public static boolean isLog4JNotConfigured()
public static void deepCopy(java.io.Externalizable fromObj,
java.io.Externalizable toObj)
fromObj - toObj - public static boolean isInteger(java.lang.String arg)
|
Open Business Objects for EDI v3.5.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||