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
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 |
DTDData
public DTDData()
- DTDData constructor.
DTDData
public DTDData(String strData)
- DTDData constructor.
- Parameters:
strData
- The data to be parsed.
readConditionalSect
public DTDData readConditionalSect()
- Read the conditional section from the data stream.
- Returns:
- The conditional section.
getNextNmToken
public 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 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 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 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.