|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.indy.util.IndyUtilities
IdGlobal 27/11/01: OTG - Created from Delphi IdGlobal unit
Field Summary | |
protected static java.lang.String |
m_datePattern
Description of the Field |
Constructor Summary | |
IndyUtilities()
|
Method Summary | |
static void |
buildMIMETypeMap()
|
static void |
commaSeperatedToCollection(java.util.Collection col,
java.lang.String src)
Description of the Method |
static boolean |
copyFileTo(java.lang.String src,
java.lang.String dest)
Description of the Method |
static java.lang.String |
dateToGMTOffsetString(java.util.Date date,
boolean subGMT)
Description of the Method |
static java.lang.String |
dateToUnixString(java.util.Date d)
Description of the Method |
static java.lang.String |
fetch(java.lang.String input)
Description of the Method |
static java.lang.String |
fetch(java.lang.String input,
boolean delete)
Description of the Method |
static java.lang.String |
fetch(java.lang.String input,
java.lang.String delim)
Description of the Method |
static java.lang.String |
fetch(java.lang.String input,
java.lang.String delim,
boolean delete)
Description of the Method |
static long |
fileSizeByName(java.lang.String filename)
Description of the Method |
protected static int |
getCalendarField(java.lang.String val,
java.lang.String pattern,
int field)
Parses a string based on a pattern and retrieves its numneric equivalent from the default Calendar instance |
static int |
getDefaultMaxLineLength()
DOCUMENT ME! |
static int |
getDefaultTimeout()
DOCUMENT ME! |
static java.lang.String |
getIndyProperty(java.lang.String key)
DOCUMENT ME! |
static java.lang.String |
getIndyVersion()
Gets the indyVersion attribute of the IdGlobal class |
static java.lang.String |
getMIMETypeFromFile(java.lang.String filename)
Gets the mIMETypeFromFile attribute of the IdGlobal class |
static java.lang.String |
getProductName()
Gets the productName attribute of the IdGlobal class |
static java.lang.String |
getResourceString(java.lang.String key)
Gets the resourceString attribute of the IdGlobal class |
static java.lang.String |
includeTrailingBackSlash(java.lang.String path)
Description of the Method |
static java.util.Collection |
indyPorts()
Description of the Method |
static boolean |
isCurrentThread(java.lang.Thread t)
Gets the currentThread attribute of the IdGlobal class |
static boolean |
isIP(java.lang.String ip)
Gets the iP attribute of the IdGlobal class |
static void |
parseURI(java.lang.String URI,
java.lang.String protocol,
java.lang.String host,
java.lang.String path,
java.lang.String document,
java.lang.String port)
Description of the Method |
static int |
posInStringArray(java.lang.String searchString,
java.lang.String[] contents)
Description of the Method |
static int |
posInStringArray(java.lang.String searchString,
java.lang.String[] contents,
boolean caseSensitive)
Description of the Method |
static int |
ROL(int val,
byte shift)
Description of the Method |
static int |
ROR(int val,
byte shift)
Description of the Method |
static void |
sleep(long time)
Description of the Method |
static int |
strToDay(java.lang.String day)
Description of the Method |
static int |
strToMonth(java.lang.String month)
Description of the Method |
static java.util.Date |
unixDateStrToDate(java.lang.String date)
Description of the Method |
static java.lang.String |
upCaseFirst(java.lang.String s)
Description of the Method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String m_datePattern
Constructor Detail |
public IndyUtilities()
Method Detail |
public static java.lang.String getIndyProperty(java.lang.String key)
key
- DOCUMENT ME!public static int getDefaultTimeout()
public static int getDefaultMaxLineLength()
protected static int getCalendarField(java.lang.String val, java.lang.String pattern, int field) throws DateParseException
val
- Description of the Parameterpattern
- Description of the Parameterfield
- Description of the ParameterDateParseException
- Description of the Exceptionpublic static java.lang.String getResourceString(java.lang.String key)
key
- Description of the Parameterpublic static java.lang.String getProductName()
public static java.lang.String getIndyVersion()
public static boolean isIP(java.lang.String ip)
ip
- Description of the Parameterpublic static java.lang.String getMIMETypeFromFile(java.lang.String filename)
filename
- Description of the Parameterpublic static boolean isCurrentThread(java.lang.Thread t)
t
- Description of the Parameterpublic static java.lang.String includeTrailingBackSlash(java.lang.String path)
path
- Description of the Parameterpublic static void buildMIMETypeMap()
public static void commaSeperatedToCollection(java.util.Collection col, java.lang.String src)
col
- Description of the Parametersrc
- Description of the Parameterpublic static boolean copyFileTo(java.lang.String src, java.lang.String dest) throws IndyIOException
src
- Description of the Parameterdest
- Description of the ParameterIdIOException
- Description of the Exceptionpublic static java.lang.String dateToGMTOffsetString(java.util.Date date, boolean subGMT)
date
- Description of the ParametersubGMT
- Description of the Parameterpublic static java.lang.String dateToUnixString(java.util.Date d)
d
- Description of the Parameterpublic static java.lang.String fetch(java.lang.String input, java.lang.String delim, boolean delete)
input
- Description of the Parameterdelim
- Description of the Parameterdelete
- Description of the Parameterpublic static java.lang.String fetch(java.lang.String input, boolean delete)
input
- Description of the Parameterdelete
- Description of the Parameterpublic static java.lang.String fetch(java.lang.String input, java.lang.String delim)
input
- Description of the Parameterdelim
- Description of the Parameterpublic static java.lang.String fetch(java.lang.String input)
input
- Description of the Parameterpublic static long fileSizeByName(java.lang.String filename)
filename
- Description of the Parameterpublic static java.util.Collection indyPorts()
public static void parseURI(java.lang.String URI, java.lang.String protocol, java.lang.String host, java.lang.String path, java.lang.String document, java.lang.String port)
URI
- Description of the Parameterprotocol
- Description of the Parameterhost
- Description of the Parameterpath
- Description of the Parameterdocument
- Description of the Parameterport
- Description of the Parameterpublic static int posInStringArray(java.lang.String searchString, java.lang.String[] contents, boolean caseSensitive)
searchString
- Description of the Parametercontents
- Description of the ParametercaseSensitive
- Description of the Parameterpublic static int posInStringArray(java.lang.String searchString, java.lang.String[] contents)
searchString
- Description of the Parametercontents
- Description of the Parameterpublic static int ROL(int val, byte shift)
val
- Description of the Parametershift
- Description of the Parameterpublic static int ROR(int val, byte shift)
val
- Description of the Parametershift
- Description of the Parameterpublic static void sleep(long time)
time
- Description of the Parameterpublic static int strToDay(java.lang.String day) throws DateParseException
day
- Description of the ParameterDateParseException
- Description of the Exceptionpublic static int strToMonth(java.lang.String month) throws DateParseException
month
- Description of the ParameterDateParseException
- Description of the Exceptionpublic static java.lang.String upCaseFirst(java.lang.String s)
s
- Description of the Parameterpublic static java.util.Date unixDateStrToDate(java.lang.String date) throws DateParseException
date
- Description of the ParameterDateParseException
- Description of the Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |