Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.trapezium.parse: Javadoc index of package com.trapezium.parse.


Package Samples:

com.trapezium.parse

Classes:

TokenEnumerator: Converts an InputStream into a sequence of tokens used by parsing. 1.0 architecture had Token objects, this replaced in 1.1 with less elegant, but more memory efficient byte array with run-length-encoding of initial spaces to store VRML file in memory. Each token still contains the same information as previously, except is now represented as an "int", and is accessed only through the TokenEnumerator. The information associated with each token is: line number offset in line of start of token size of token (number of characters it contains) type of token Quoted strings are implemented with two token ...
TokenFactory: Assigns a range of characters within a line to a token of a particular type. Adapted from initial 1.0 strategy of creating Token objects. This approach abandoned due to OutOfMemory exception, tokens now managed within TokenEnumerator with arrays. The optimization that required this has complicated the code, since it was not initially designed this way. The TokenFactory is a single class that has taken the place of several classes in the previous architecture. The port from one architecture to the other was very straightforward, but has resulted in what appears to be very unusual and messy class ...
TextLineParser: Converts InputStream into a vector of lines. Works with TextLineEnumerator. No longer used with VRML files, Strings too memory intensive. Should be removed.
LineReader: Reads lines into memory using JDK1.1 or JDK1.0. First tries JDK1.1, switches to JDK1.0 if NoClassDefFound exception occurs.
InputStreamFactory: Provides a static public method for creating an InputStream from a String indicating a file or URL.
TextLineEnumerator: Provides an Enumeration for text lines. Not very useful, should be removed.
TokenTypes: Constants for types of tokens created by parsing.
Keywords
LineError

Home | Contact Us | Privacy Policy | Terms of Service