TPTP 4.6.0 Platform Project
Public API Specification

org.eclipse.hyades.loaders.util
Class XMLLoader

java.lang.Object
  extended by org.eclipse.hyades.loaders.util.XMLLoader
All Implemented Interfaces:
IXMLLoader, org.eclipse.hyades.models.hierarchy.util.internal.IExtendedLoader
Direct Known Subclasses:
BinaryLoader

public class XMLLoader
extends java.lang.Object
implements org.eclipse.hyades.models.hierarchy.util.internal.IExtendedLoader


Constructor Summary
XMLLoader(TRCAgent agent)
           
XMLLoader(TRCAgentProxy agentProxy)
           
XMLLoader(TRCMonitor monitor)
           
 
Method Summary
 void attributeName(int nameId)
           
 void attributeName(java.lang.String name)
           
 void attributeValueCharacters(char[] attributeValue)
           
 void attributeValueCharacters(java.lang.String attributeValue)
           
 void characters(char[] ch, int start, int length)
           
 void cleanUp()
           
 void endDocument(java.lang.Object object, int i)
           
 void endElement(int elementNameId, int currentOffset)
           
 void endElement(java.lang.String elementName, int currentOffset)
           
 void error(org.eclipse.hyades.models.hierarchy.util.internal.InvalidEventException exception)
           
 void error(InvalidXMLException exception)
           
 HierarchyContext getContext()
           
 int getProcessedFragments()
           
 void loadEvent(byte[] buffer, int length)
           
 void loadEvent(byte[] buffer, int length, boolean loadToModel)
           
 void loadEvent(byte[] buffer, int length, boolean loadToModel, boolean toProfileFile)
           
 void loadEvent(byte[] buffer, int offset, int length)
           
 void loadEvent(byte[] buffer, int offset, int length, boolean loadToModel)
           
 void loadEvent(byte[] buffer, int offset, int length, boolean loadToModel, boolean toProfileFile)
           
 void loadEvents(java.io.InputStream inputStream, long offset, long length)
           
static javax.xml.parsers.SAXParser makeParser()
           
 void restartParser()
           
 void setCollectionMode(int collectionMode)
           
 void startDocument()
           
 void startElement(int elementNameId, boolean hasAttributes, boolean isEmpty)
           
 void startElement(java.lang.String elementName, boolean hasAttributes, boolean isEmpty)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLLoader

public XMLLoader(TRCAgentProxy agentProxy)

XMLLoader

public XMLLoader(TRCAgent agent)

XMLLoader

public XMLLoader(TRCMonitor monitor)
Method Detail

setCollectionMode

public void setCollectionMode(int collectionMode)
Specified by:
setCollectionMode in interface IXMLLoader

getContext

public HierarchyContext getContext()
Specified by:
getContext in interface IXMLLoader

getProcessedFragments

public int getProcessedFragments()
Specified by:
getProcessedFragments in interface IXMLLoader

attributeName

public void attributeName(java.lang.String name)
Specified by:
attributeName in interface IXMLLoader

attributeValueCharacters

public void attributeValueCharacters(java.lang.String attributeValue)
Specified by:
attributeValueCharacters in interface IXMLLoader

characters

public void characters(char[] ch,
                       int start,
                       int length)
Specified by:
characters in interface IXMLLoader

cleanUp

public void cleanUp()
Specified by:
cleanUp in interface IXMLLoader

endDocument

public void endDocument(java.lang.Object object,
                        int i)
Specified by:
endDocument in interface IXMLLoader

endElement

public void endElement(java.lang.String elementName,
                       int currentOffset)
Specified by:
endElement in interface IXMLLoader

error

public void error(InvalidXMLException exception)
Specified by:
error in interface IXMLLoader

loadEvent

public void loadEvent(byte[] buffer,
                      int offset,
                      int length,
                      boolean loadToModel,
                      boolean toProfileFile)
               throws InvalidXMLException
Throws:
InvalidXMLException

loadEvent

public void loadEvent(byte[] buffer,
                      int offset,
                      int length,
                      boolean loadToModel)
               throws InvalidXMLException
Throws:
InvalidXMLException

loadEvent

public void loadEvent(byte[] buffer,
                      int offset,
                      int length)
               throws InvalidXMLException
Throws:
InvalidXMLException

restartParser

public void restartParser()
Specified by:
restartParser in interface IXMLLoader

startDocument

public void startDocument()
Specified by:
startDocument in interface IXMLLoader

startElement

public void startElement(java.lang.String elementName,
                         boolean hasAttributes,
                         boolean isEmpty)
Specified by:
startElement in interface IXMLLoader

makeParser

public static javax.xml.parsers.SAXParser makeParser()
                                              throws javax.xml.parsers.ParserConfigurationException,
                                                     org.xml.sax.SAXException
Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

loadEvent

public void loadEvent(byte[] buffer,
                      int length,
                      boolean loadToModel,
                      boolean toProfileFile)
               throws InvalidXMLException
Specified by:
loadEvent in interface IXMLLoader
Throws:
InvalidXMLException

loadEvent

public void loadEvent(byte[] buffer,
                      int length,
                      boolean loadToModel)
               throws InvalidXMLException
Specified by:
loadEvent in interface IXMLLoader
Throws:
InvalidXMLException

loadEvent

public void loadEvent(byte[] buffer,
                      int length)
               throws InvalidXMLException
Specified by:
loadEvent in interface IXMLLoader
Throws:
InvalidXMLException

attributeName

public void attributeName(int nameId)
Specified by:
attributeName in interface org.eclipse.hyades.models.hierarchy.util.internal.IExtendedLoader

attributeValueCharacters

public void attributeValueCharacters(char[] attributeValue)
Specified by:
attributeValueCharacters in interface org.eclipse.hyades.models.hierarchy.util.internal.IExtendedLoader

endElement

public void endElement(int elementNameId,
                       int currentOffset)
Specified by:
endElement in interface org.eclipse.hyades.models.hierarchy.util.internal.IExtendedLoader

error

public void error(org.eclipse.hyades.models.hierarchy.util.internal.InvalidEventException exception)
Specified by:
error in interface org.eclipse.hyades.models.hierarchy.util.internal.IExtendedLoader

startElement

public void startElement(int elementNameId,
                         boolean hasAttributes,
                         boolean isEmpty)
Specified by:
startElement in interface org.eclipse.hyades.models.hierarchy.util.internal.IExtendedLoader

loadEvents

public void loadEvents(java.io.InputStream inputStream,
                       long offset,
                       long length)
                throws org.eclipse.hyades.models.hierarchy.util.internal.InvalidEventException
Specified by:
loadEvents in interface org.eclipse.hyades.models.hierarchy.util.internal.IExtendedLoader
Throws:
org.eclipse.hyades.models.hierarchy.util.internal.InvalidEventException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

TPTP 4.6.0 Platform Project
Public API Specification