Matra DTD Parser 0.8b

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

Fields inherited from class com.conradroche.matra.data.Data
CHAR_NOT_FOUND, END_OF_DATA_CHAR, FOUND_CHAR
 
Constructor Summary
DTDData()
          DTDData constructor.
DTDData(String strData)
          DTDData constructor.
 
Method Summary
 String getNextName()
          Reads the Name from the current location.
 String[] getNextNames()
          Reads Names, delimited by space chars, from the current location.
 String getNextNmToken()
          Reads the NmToken from the current location.
 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
 

Constructor Detail

DTDData

public DTDData()
DTDData constructor.

DTDData

public DTDData(String strData)
DTDData constructor.
Parameters:
strData - The data to be parsed.
Method Detail

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.

Matra DTD Parser 0.8b