| Method from com.sun.org.apache.xalan.internal.xsltc.trax.StAXStream2SAX Detail: |
public void bridge() throws XMLStreamException {
try {
// remembers the nest level of elements to know when we are done.
int depth=0;
// skip over START_DOCUMENT
int event = staxStreamReader.getEventType();
if (event == XMLStreamConstants.START_DOCUMENT) {
event = staxStreamReader.next();
}
// If not a START_ELEMENT (e.g., a DTD), skip to next tag
if (event != XMLStreamConstants.START_ELEMENT) {
event = staxStreamReader.nextTag();
// An error if a START_ELEMENT isn't found now
if (event != XMLStreamConstants.START_ELEMENT) {
throw new IllegalStateException("The current event is " +
"not START_ELEMENT\n but" + event);
}
}
handleStartDocument();
do {
// These are all of the events listed in the javadoc for
// XMLEvent.
// The spec only really describes 11 of them.
switch (event) {
case XMLStreamConstants.START_ELEMENT :
depth++;
handleStartElement();
break;
case XMLStreamConstants.END_ELEMENT :
handleEndElement();
depth--;
break;
case XMLStreamConstants.CHARACTERS :
handleCharacters();
break;
case XMLStreamConstants.ENTITY_REFERENCE :
handleEntityReference();
break;
case XMLStreamConstants.PROCESSING_INSTRUCTION :
handlePI();
break;
case XMLStreamConstants.COMMENT :
handleComment();
break;
case XMLStreamConstants.DTD :
handleDTD();
break;
case XMLStreamConstants.ATTRIBUTE :
handleAttribute();
break;
case XMLStreamConstants.NAMESPACE :
handleNamespace();
break;
case XMLStreamConstants.CDATA :
handleCDATA();
break;
case XMLStreamConstants.ENTITY_DECLARATION :
handleEntityDecl();
break;
case XMLStreamConstants.NOTATION_DECLARATION :
handleNotationDecl();
break;
case XMLStreamConstants.SPACE :
handleSpace();
break;
default :
throw new InternalError("processing event: " + event);
}
event=staxStreamReader.next();
} while (depth!=0);
handleEndDocument();
} catch (SAXException e) {
throw new XMLStreamException(e);
}
}
|
public int getColumnNumber() {
return 0;
}
This class is only used internally so this method should never
be called. |
public ContentHandler getContentHandler() {
return _sax;
}
|
public DTDHandler getDTDHandler() {
return null;
}
This class is only used internally so this method should never
be called. |
public EntityResolver getEntityResolver() {
return null;
}
This class is only used internally so this method should never
be called. |
public ErrorHandler getErrorHandler() {
return null;
}
This class is only used internally so this method should never
be called. |
public boolean getFeature(String name) throws SAXNotSupportedException, SAXNotRecognizedException {
return false;
}
This class is only used internally so this method should never
be called. |
public int getLineNumber() {
return 0;
}
This class is only used internally so this method should never
be called. |
public Object getProperty(String name) throws SAXNotSupportedException, SAXNotRecognizedException {
return null;
}
This class is only used internally so this method should never
be called. |
public String getPublicId() {
return null;
}
This class is only used internally so this method should never
be called. |
public String getSystemId() {
return null;
}
This class is only used internally so this method should never
be called. |
public void parse() throws XMLStreamException, IOException, SAXException {
bridge();
}
|
public void parse(InputSource unused) throws IOException, SAXException {
try {
bridge();
} catch (XMLStreamException e) {
throw new SAXException(e);
}
}
|
public void parse(String sysId) throws IOException, SAXException {
throw new IOException("This method is not yet implemented.");
}
This class is only used internally so this method should never
be called. |
public void setContentHandler(ContentHandler handler) throws NullPointerException {
_sax = handler;
if (handler instanceof LexicalHandler) {
_lex = (LexicalHandler) handler;
}
if (handler instanceof SAXImpl) {
_saxImpl = (SAXImpl)handler;
}
}
|
public void setDTDHandler(DTDHandler handler) throws NullPointerException {
}
This class is only used internally so this method should never
be called. |
public void setEntityResolver(EntityResolver resolver) throws NullPointerException {
}
This class is only used internally so this method should never
be called. |
public void setErrorHandler(ErrorHandler handler) throws NullPointerException {
}
This class is only used internally so this method should never
be called. |
public void setFeature(String name,
boolean value) throws SAXNotSupportedException, SAXNotRecognizedException {
}
This class is only used internally so this method should never
be called. |
public void setProperty(String name,
Object value) throws SAXNotSupportedException, SAXNotRecognizedException {
}
This class is only used internally so this method should never
be called. |