java.lang.Object
com.trapezium.parse.TextLineParser
- public class TextLineParser
- extends java.lang.Object
Converts InputStream into a vector of lines. Works with
TextLineEnumerator. No longer used with VRML files, Strings too
memory intensive. Should be removed.
- Since:
- 1.0
- Version:
- 1.0, 31 Oct 1997
|
Method Summary |
void |
dump()
Debugging dump of the TextLineParser |
java.util.Vector |
getLines()
Get the vector of Strings that were loaded from the file |
(package private) void |
loadLines(java.io.InputStream inStream)
Initialize the vector of string objects from text read from an InputStream |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lines
java.util.Vector lines
TextLineParser
public TextLineParser(java.io.InputStream inStream)
- Class constructor, creates vector of String lines from an InputStream
TextLineParser
public TextLineParser(java.io.File source)
throws java.io.FileNotFoundException,
java.io.IOException
- Class Constructor, create vector of String lines from a file
getLines
public java.util.Vector getLines()
- Get the vector of Strings that were loaded from the file
loadLines
void loadLines(java.io.InputStream inStream)
- Initialize the vector of string objects from text read from an InputStream
dump
public void dump()
- Debugging dump of the TextLineParser