|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sas.servlet.util.OpenURL
Application for opening the given URL and redirecting the contents to some output device (such as the console or file).
Usage:java com.sas.servlet.util.OpenURL <url> [-o<filename>] [-r<search>=<replace>]
url = The URL to open
filename = The optional output file name
search=replace = An optional search and replace parameter. Multiple search and replace parameters can be specified. If an '=' sign must be used in the search and/or replace string it must be escaped with '\='. Searches are case- sensitive. A quote (") can be represented by double single quotes ('')
Constructor Summary | |
OpenURL()
|
Method Summary | |
protected int |
findString(String s,
String p,
String escPrefix)
Finds the given pattern in the given string. |
protected String |
getArg(String[] args,
String sw)
Returns the argument with the given leading switch. |
static void |
main(String[] args)
Main entry point |
void |
open(String[] args)
Open the URL and send to the output device |
protected String |
searchAndReplace(String s,
String search,
String replace)
Searches and replaces. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public OpenURL()
Method Detail |
public static void main(String[] args)
args
- The program argumentspublic void open(String[] args) throws Exception
args
- The program argumentsprotected String getArg(String[] args, String sw)
args
- The program argumentsswitch
- The switch to search forprotected int findString(String s, String p, String escPrefix)
protected String searchAndReplace(String s, String search, String replace)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |