com.conradroche.matra.data
Class DTDData
java.lang.Object
|
+--com.conradroche.matra.data.Data
|
+--com.conradroche.matra.data.ParseableData
|
+--com.conradroche.matra.data.DTDData
- public class DTDData
- extends ParseableData
Class to read DTD data,
- Author:
- Conrad Roche
Constructor Summary |
DTDData()
DTDData constructor. |
DTDData(java.lang.String strData)
DTDData constructor. |
Method Summary |
java.lang.String |
getNextName()
Reads the Name from the current location. |
java.lang.String[] |
getNextNames()
Reads Names, delimited by space chars,
from the current location. |
java.lang.String |
getNextNmToken()
Reads the NmToken from the current location. |
java.lang.String[] |
getNextNmTokens()
Reads NmTokens, delimited by space chars,
from the current location. |
DTDData |
readConditionalSect()
Read the conditional section from the data stream. |
Methods inherited from class com.conradroche.matra.data.ParseableData |
getNextToken, getNextToken, getNextToken, isWhiteSpace, nextStringEquals, nextStringEquals, nextTokenEquals, nextTokenEquals, skipChars, skipChars, skipWhiteSpace |
Methods inherited from class com.conradroche.matra.data.Data |
checkNextChar, endOfData, getColumn, getCurrentLocation, getCurrentPosition, getNextChar, getPrevChar, getRemaining, getRow, length, lookNextChar, peekAhead, reset, rewind, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DTDData
public DTDData()
- DTDData constructor.
DTDData
public DTDData(java.lang.String strData)
- DTDData constructor.
- Parameters:
StrData
- The data to be parsed.
readConditionalSect
public DTDData readConditionalSect()
- Read the conditional section from the data stream.
getNextNmToken
public java.lang.String getNextNmToken()
- Reads the NmToken from the current location.
If no valid nmToken is present, it returns
null
.
- Returns:
- The NmToken read from the current
location;
null
if a valid
NmToken is not present at the current
location.
getNextName
public java.lang.String getNextName()
- Reads the Name from the current location.
If no valid Name is present, it returns
null
.
- Returns:
- The Name read from the current
location;
null
if a valid
Name is not present at the current
location.
getNextNames
public java.lang.String[] getNextNames()
- Reads Names, delimited by space chars,
from the current location.
If no valid Name is present, it returns
null
.
- Returns:
- The Names read from the current
location;
null
if a valid
Name is not present at the current
location.
getNextNmTokens
public java.lang.String[] getNextNmTokens()
- Reads NmTokens, delimited by space chars,
from the current location.
If no valid nmToken is present, it returns
null
.
- Returns:
- The NmTokens read from the current
location;
null
if a valid
NmToken is not present at the current
location.