Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.xerces.readers
Class XMLEntityReader  view XMLEntityReader download XMLEntityReader.java

java.lang.Object
  extended byorg.apache.xerces.readers.XMLEntityReader
All Implemented Interfaces:
XMLEntityHandler.EntityReader
Direct Known Subclasses:
AbstractCharReader, StreamingCharReader, StringReader, UCSReader, UTF8Reader, UTF8Recognizer.XMLDeclReader

abstract class XMLEntityReader
extends java.lang.Object
implements XMLEntityHandler.EntityReader

This is the class used by the scanner to process the XML data.

Version:
$Id: XMLEntityReader.java,v 1.3 2000/10/07 18:06:55 markd Exp $

Field Summary
protected  int fCarriageReturnCounter
           
protected  int fCharacterCounter
           
protected  XMLEntityHandler.CharDataHandler fCharDataHandler
           
protected  int fCurrentOffset
           
protected  XMLEntityHandler fEntityHandler
           
protected  org.apache.xerces.framework.XMLErrorReporter fErrorReporter
           
protected  boolean fInCDSect
           
protected  int fLinefeedCounter
           
protected  boolean fSendCharDataAsCharArray
           
private  boolean fStillActive
           
 
Constructor Summary
protected XMLEntityReader(XMLEntityHandler entityHandler, org.apache.xerces.framework.XMLErrorReporter errorReporter, boolean sendCharDataAsCharArray)
          Constructor
protected XMLEntityReader(XMLEntityHandler entityHandler, org.apache.xerces.framework.XMLErrorReporter errorReporter, boolean sendCharDataAsCharArray, int lineNumber, int columnNumber)
          Constructor
 
Method Summary
protected  XMLEntityHandler.EntityReader changeReaders()
          This method is called by the reader subclasses at the end of input.
 int currentOffset()
          Return the current offset within this reader.
 int getColumnNumber()
          Return the column number of the current position within the document that we are processing.
 boolean getInCDSect()
          This method is provided for scanner implementations.
 int getLineNumber()
          Return the line number of the current position within the document that we are processing.
protected  void init(XMLEntityHandler entityHandler, org.apache.xerces.framework.XMLErrorReporter errorReporter, boolean sendCharDataAsCharArray, int lineNumber, int columnNumber)
           
 void setInCDSect(boolean inCDSect)
          This method is provided for scanner implementations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.xerces.readers.XMLEntityHandler.EntityReader
addString, addSymbol, append, lookingAtChar, lookingAtSpace, lookingAtValidChar, scanAttValue, scanCharRef, scanContent, scanEntityValue, scanExpectedName, scanInvalidChar, scanName, scanQName, scanStringLiteral, skipPastName, skipPastNmtoken, skipPastSpaces, skippedString, skipToChar
 

Field Detail

fEntityHandler

protected XMLEntityHandler fEntityHandler

fErrorReporter

protected org.apache.xerces.framework.XMLErrorReporter fErrorReporter

fSendCharDataAsCharArray

protected boolean fSendCharDataAsCharArray

fCharDataHandler

protected XMLEntityHandler.CharDataHandler fCharDataHandler

fInCDSect

protected boolean fInCDSect

fStillActive

private boolean fStillActive

fCarriageReturnCounter

protected int fCarriageReturnCounter

fLinefeedCounter

protected int fLinefeedCounter

fCharacterCounter

protected int fCharacterCounter

fCurrentOffset

protected int fCurrentOffset
Constructor Detail

XMLEntityReader

protected XMLEntityReader(XMLEntityHandler entityHandler,
                          org.apache.xerces.framework.XMLErrorReporter errorReporter,
                          boolean sendCharDataAsCharArray)
Constructor


XMLEntityReader

protected XMLEntityReader(XMLEntityHandler entityHandler,
                          org.apache.xerces.framework.XMLErrorReporter errorReporter,
                          boolean sendCharDataAsCharArray,
                          int lineNumber,
                          int columnNumber)
Constructor

Method Detail

init

protected void init(XMLEntityHandler entityHandler,
                    org.apache.xerces.framework.XMLErrorReporter errorReporter,
                    boolean sendCharDataAsCharArray,
                    int lineNumber,
                    int columnNumber)

currentOffset

public int currentOffset()
Return the current offset within this reader.

Specified by:
currentOffset in interface XMLEntityHandler.EntityReader

getLineNumber

public int getLineNumber()
Return the line number of the current position within the document that we are processing.

Specified by:
getLineNumber in interface XMLEntityHandler.EntityReader

getColumnNumber

public int getColumnNumber()
Return the column number of the current position within the document that we are processing.

Specified by:
getColumnNumber in interface XMLEntityHandler.EntityReader

setInCDSect

public void setInCDSect(boolean inCDSect)
This method is provided for scanner implementations.

Specified by:
setInCDSect in interface XMLEntityHandler.EntityReader

getInCDSect

public boolean getInCDSect()
This method is provided for scanner implementations.

Specified by:
getInCDSect in interface XMLEntityHandler.EntityReader

changeReaders

protected XMLEntityHandler.EntityReader changeReaders()
                                               throws java.lang.Exception
This method is called by the reader subclasses at the end of input.