com.bea.xml.stream

Class EventScanner


public class EventScanner
extends java.lang.Object

This class replays events from a simple non-xml file format

Field Summary

protected char
currentChar
protected int
currentLine
protected Reader
reader

Constructor Summary

EventScanner()
EventScanner(Reader reader)

Method Summary

boolean
endDocumentIsPresent()
protected char
getChar()
String
getName(String name)
String
getPrefix(String name)
boolean
hasNext()
static void
main(args[] )
protected char
read()
protected void
read(String s)
protected char
read(char c)
javax.xml.stream.events.Attribute
readAttribute()
List
readAttributes()
EventState
readCDATA()
EventState
readCharacterData()
EventState
readComment()
EventState
readDTD()
EventState
readElement()
EventState
readEndDocument()
EventState
readEndElement()
EventState
readEntityReference()
javax.xml.namespace.QName
readName()
javax.xml.namespace.QName
readName(char delim)
EventState
readProcessingInstruction()
EventState
readSpace()
EventState
readStartDocument()
EventState
readStartElement()
protected String
readString(char delim)
protected int
readType()
void
setReader(Reader reader)
protected void
skipSpace()

Field Details

currentChar

protected char currentChar

currentLine

protected int currentLine

reader

protected Reader reader

Constructor Details

EventScanner

public EventScanner()

EventScanner

public EventScanner(Reader reader)
            throws IOException

Method Details

endDocumentIsPresent

public boolean endDocumentIsPresent()

getChar

protected char getChar()

getName

public String getName(String name)

getPrefix

public String getPrefix(String name)

hasNext

public boolean hasNext()
            throws IOException

main

public static void main(args[] )
            throws Exception

read

protected char read()
            throws IOException

read

protected void read(String s)
            throws javax.xml.stream.XMLStreamException,
                   IOException

read

protected char read(char c)
            throws javax.xml.stream.XMLStreamException,
                   IOException

readAttribute

public javax.xml.stream.events.Attribute readAttribute()
            throws javax.xml.stream.XMLStreamException,
                   IOException

readAttributes

public List readAttributes()
            throws javax.xml.stream.XMLStreamException,
                   IOException

readCDATA

public EventState readCDATA()
            throws javax.xml.stream.XMLStreamException,
                   IOException

readCharacterData

public EventState readCharacterData()
            throws javax.xml.stream.XMLStreamException,
                   IOException

readComment

public EventState readComment()
            throws javax.xml.stream.XMLStreamException,
                   IOException

readDTD

public EventState readDTD()
            throws javax.xml.stream.XMLStreamException,
                   IOException

readElement

public EventState readElement()
            throws javax.xml.stream.XMLStreamException,
                   IOException

readEndDocument

public EventState readEndDocument()
            throws javax.xml.stream.XMLStreamException

readEndElement

public EventState readEndElement()
            throws javax.xml.stream.XMLStreamException,
                   IOException

readEntityReference

public EventState readEntityReference()
            throws javax.xml.stream.XMLStreamException,
                   IOException

readName

public javax.xml.namespace.QName readName()
            throws javax.xml.stream.XMLStreamException,
                   IOException

readName

public javax.xml.namespace.QName readName(char delim)
            throws javax.xml.stream.XMLStreamException,
                   IOException

readProcessingInstruction

public EventState readProcessingInstruction()
            throws javax.xml.stream.XMLStreamException,
                   IOException

readSpace

public EventState readSpace()
            throws javax.xml.stream.XMLStreamException,
                   IOException

readStartDocument

public EventState readStartDocument()
            throws javax.xml.stream.XMLStreamException,
                   IOException

readStartElement

public EventState readStartElement()
            throws javax.xml.stream.XMLStreamException,
                   IOException

readString

protected String readString(char delim)
            throws IOException,
                   javax.xml.stream.XMLStreamException

readType

protected int readType()
            throws javax.xml.stream.XMLStreamException,
                   IOException

setReader

public void setReader(Reader reader)
            throws IOException

skipSpace

protected void skipSpace()
            throws IOException