|
|||||||||
| Home >> All >> org >> vmdb >> [ hl7 overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.vmdb.hl7
Class StringList

java.lang.Objectorg.vmdb.hl7.StringList
- All Implemented Interfaces:
- java.io.Serializable
- public class StringList
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
Description: HL7 Network Connectivity For VMDB.
Copyright: Copyright (c) 2002-2003.
Company: M&M Informatics.
More or less take over from the StringTokenizer class but with two modifications. First, two sequential tokens result in an empty string rather than no token. Second getIndex and setIndex allow saving and restoring state to allow roll-back of reading from the list.
- Version:
- 1.0
| Field Summary | |
private int |
iCurIndex
|
static char |
NONE
NULL character used to specify no escape character. |
private java.util.Vector |
vData
|
| Constructor Summary | |
StringList(java.io.Reader rData,
char cDelimiter)
Construct a string list, splitting the data string with the delimiter character. |
|
StringList(java.lang.String sData,
char cDelimiter)
Construct a string list, splitting the data string with the delimiter character. |
|
| Method Summary | |
int |
getIndex()
Get the current location of the string retrieval pointer as an integer. This can be saved and used later to undo a number of nextString() calls. |
boolean |
hasMoreStrings()
Test list for existence of one or more remaining tokens. |
void |
init(java.io.Reader rData,
char cDelimiter)
Populate this string list, splitting the data string with the delimiter character. |
void |
init(java.lang.String sData,
char cDelimiter)
Populate this string list, splitting the data string with the delimiter character. |
java.lang.String |
nextString()
Get the next string from the list of tokenized strings. |
void |
setIndex(int iCurIndex)
Return the current location pointer to a saved location. |
int |
size()
Return the number of strings in the tokenized list. |
java.lang.String |
toString()
This is mostly a debugging method. |
boolean |
undoNext()
Move the pointer back one, having the effect of putting the last string retrieved back onto the list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
NONE
public static final char NONE
- NULL character used to specify no escape character.
- See Also:
- Constant Field Values
vData
private java.util.Vector vData
iCurIndex
private int iCurIndex
| Constructor Detail |
StringList
public StringList(java.lang.String sData, char cDelimiter)
- Construct a string list, splitting the data string with the delimiter
character.
StringList
public StringList(java.io.Reader rData, char cDelimiter)
- Construct a string list, splitting the data string with the delimiter
character.
| Method Detail |
init
public void init(java.lang.String sData, char cDelimiter)
- Populate this string list, splitting the data string with the delimiter
character.
init
public void init(java.io.Reader rData, char cDelimiter)
- Populate this string list, splitting the data string with the delimiter
character.
toString
public java.lang.String toString()
- This is mostly a debugging method. It converts the string list to
one line per token format.
hasMoreStrings
public boolean hasMoreStrings()
- Test list for existence of one or more remaining tokens.
nextString
public java.lang.String nextString()
- Get the next string from the list of tokenized strings.
undoNext
public boolean undoNext()
- Move the pointer back one, having the effect of putting the last
string retrieved back onto the list.
size
public int size()
- Return the number of strings in the tokenized list.
getIndex
public int getIndex()
- Get the current location of the string retrieval pointer as an integer.
This can be saved and used later to undo a number of nextString() calls. The effect is of bookmarking a location.
setIndex
public void setIndex(int iCurIndex)
- Return the current location pointer to a saved location.
|
|||||||||
| Home >> All >> org >> vmdb >> [ hl7 overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.vmdb.hl7.StringList