|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.wvs.common.util.Utilities
Utils which are used by both server and client
Supported API: false
Constructor Summary | |
Utilities()
|
Method Summary | |
static String |
addPathToFile(String path,
String fileName)
Appends the filename to the path inserting the System delimiter Supported API: false |
static String |
addPathToFile(String path,
String fileName,
String delimiter)
Appends the filename to the path inserting the delimiter Supported API: false |
static String |
convertEmbedToObject(String embed,
String objParams,
String addParams)
convert a String representation of an embed tag to an object tag. |
static byte[] |
getDataFromFile(String filename)
Extracts a byte array containing all data in specified file Supported API: false |
static int |
getFileLength(String filename)
Returns the number of bytes in a file Supported API: false |
static String |
getRelativeURL(String fullURL)
remove the server:port etc from the start of the url Supported API: false |
static boolean |
mkdir(String directory)
Make a directory Supported API: false |
static String |
SandR(String in,
String s,
String r)
Substitutes one string for another in an input String Supported API: false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Utilities()
Method Detail |
public static String addPathToFile(String path, String fileName, String delimiter)
path
- Path to filedelimiter
- The delimiter to insert
public static String addPathToFile(String path, String fileName)
path
- Path to file
public static String SandR(String in, String s, String r)
in
- Input strings
- Substitution stringr
- Replace string
public static int getFileLength(String filename)
filename
- File to be sized
public static byte[] getDataFromFile(String filename)
filename
- File whos dat is to be extracted
public static boolean mkdir(String directory)
directory
- The directory to make
public static String getRelativeURL(String fullURL)
public static String convertEmbedToObject(String embed, String objParams, String addParams)
embed
- the embed tagobjParams
- parameters to add to the object tagaddParams
- additional data to add inside the object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |