|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--jgb.BuildWindowFromXmlFile
Builds a window from an XML file.
This tool may be used to view an XML file using the current implementation.
Simply run the following:
java jgb.BuildWindowFromXmlFile path/to/xml-file
Optional options are as follows:
Builder to be
verbose.
Builder to be
quiet.
| Constructor Summary | |
BuildWindowFromXmlFile()
|
|
| Method Summary | |
static void |
main(String[] args)
Builds a window from the file passed as the first argument. |
void |
printUsage(PrintWriter out,
jgb.InvalidParameterException exception)
|
String |
processArguments(jgb.builder.Builder builder,
List args)
Reads and processes each argument on the command line. |
Component |
start(jgb.builder.Builder b,
org.xml.sax.InputSource in)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BuildWindowFromXmlFile()
| Method Detail |
public static void main(String[] args)
throws Exception
args - The arguments as received from the command-line.
Exception - If an exception is thrown while building the window.
public void printUsage(PrintWriter out,
jgb.InvalidParameterException exception)
public String processArguments(jgb.builder.Builder builder,
List args)
throws InvalidParameterException,
FileNotFoundException
builder - The builder which will have its options set according
to the options set on the command line.args - The list of arguments as received from the command-line.
The list will in no way be modified by this method.
RequiredArgumentMissingException - if the filename argument is missing
from the command line.
UnknownArgumentException - if an argument cannot be processed
because it is not a filename.
FileNotFoundException - if the filename argument cannot be found
on disk.
TooManyArgumentsException - if there are more than one filename
arguments on the command line.
InvalidParameterException
public Component start(jgb.builder.Builder b,
org.xml.sax.InputSource in)
throws IOException,
org.xml.sax.SAXException
IOException
org.xml.sax.SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||