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

Quick Search    Search Deep

com.trapezium.parse
Class TextLineParser  view TextLineParser download TextLineParser.java

java.lang.Object
  extended bycom.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

Field Summary
(package private)  java.util.Vector lines
           
 
Constructor Summary
TextLineParser(java.io.File source)
          Class Constructor, create vector of String lines from a file
TextLineParser(java.io.InputStream inStream)
          Class constructor, creates vector of String lines from an InputStream
 
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
 

Field Detail

lines

java.util.Vector lines
Constructor Detail

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

Method Detail

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