|
iso8211 0-1-0 by Weft | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--uk.co.weft.iso8211.Parser
Command line for ISO 8211 parse. TODO: Currently no real exception handling. This class (and consequently any class inheriting from this class) knows about the following tokens in contexts:
However when running this parser from the command line both config and context tokens can be supplied as command line flags prefixed by '-'. The token to which the '-' is prepended will be used as a key in the context and the token following will be used as its value. Any token not either a keyword token (prepended with '-') or immediately following a key token on the command line will be taken as the name of an S57 file to be parsed, as though a '-s57_file_name' had been read. If multiple S57 input files are specified on the command line only the last will be read.
$Log: Parser.java,v $ Revision 1.3 2002/11/04 14:11:15 simon Now generating (some) XML. Tidy up for first public release. Revision 1.2 2002/11/02 00:09:16 simon Promising, but still not there. Problems include not correctly finding the start of the next record. Revision 1.1.1.1 2002/10/29 11:27:33 simon More or less parses
| Field Summary | |
boolean |
debug
whether or not I'm in debug mode |
java.lang.String |
transformURL
the URL to use to transform the output |
| Constructor Summary | |
Parser()
|
|
| Method Summary | |
org.w3c.dom.Document |
generate(uk.co.weft.dbutil.Context context)
Parse an S57 file and generate a document. |
java.lang.String |
getTransformURL(uk.co.weft.dbutil.Context context)
get the URL of my stylesheet as a String. |
void |
init(uk.co.weft.dbutil.Context config)
Initialise this generator with configuration information from this context |
static void |
main(java.lang.String[] args)
very crude command line shell. |
protected Record |
readRecord(ISO8211InputStream in,
DDR ddr)
get the next record from my stream if any |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public boolean debug
public java.lang.String transformURL
| Constructor Detail |
public Parser()
| Method Detail |
public static void main(java.lang.String[] args)
throws java.lang.Exception
protected Record readRecord(ISO8211InputStream in,
DDR ddr)
throws java.lang.Exception
public org.w3c.dom.Document generate(uk.co.weft.dbutil.Context context)
throws java.lang.Exception
public java.lang.String getTransformURL(uk.co.weft.dbutil.Context context)
throws uk.co.weft.domutil.GenerationException
public void init(uk.co.weft.dbutil.Context config)
throws uk.co.weft.htform.InitialisationException
|
iso8211 0-1-0 by Weft | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||