com.pegacat.vcf.data
Class VoyagerText
java.lang.Object
|
+--com.pegacat.vcf.data.VoyagerText
- public class VoyagerText
- extends java.lang.Object
Represents a text report of some sort -
e.g. a survey or turn report.
internally report is stored as an array of strings.
Field Summary |
protected java.lang.String[] |
lines
contains the actual stored text |
Constructor Summary |
VoyagerText()
|
VoyagerText(java.util.Collection linecoll)
constructor for building from a collection of strings |
VoyagerText(java.lang.String text)
|
VoyagerText(java.lang.String[] _lines)
constructor for building from an array of strings |
Method Summary |
java.lang.String |
get(int line)
Get an individual line from the text
Creation date: (29/05/2001 9:55:33 AM) |
java.lang.String[] |
getLines()
get all lines as an array
Creation date: (29/05/2001 10:33:53 AM) |
java.lang.String |
getText()
|
void |
setText(java.lang.String text)
|
int |
size()
return number of lines in the text, or 0 if empty
Creation date: (29/05/2001 9:59:36 AM) |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
lines
protected java.lang.String[] lines
- contains the actual stored text
VoyagerText
public VoyagerText()
VoyagerText
public VoyagerText(java.lang.String text)
VoyagerText
public VoyagerText(java.lang.String[] _lines)
- constructor for building from an array of strings
VoyagerText
public VoyagerText(java.util.Collection linecoll)
- constructor for building from a collection of strings
setText
public void setText(java.lang.String text)
getText
public java.lang.String getText()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
get
public java.lang.String get(int line)
- Get an individual line from the text
Creation date: (29/05/2001 9:55:33 AM)
getLines
public java.lang.String[] getLines()
- get all lines as an array
Creation date: (29/05/2001 10:33:53 AM)
- Returns:
- java.lang.String[]
size
public int size()
- return number of lines in the text, or 0 if empty
Creation date: (29/05/2001 9:59:36 AM)
- Returns:
- int