|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.topologi.diffx.load.DOMRecorder
Loads a DOM documents as a sequence of events.
This class implements the methods Recorder.process(File) and
Recorder.process(String) for convenience, but is it much more efficient
to feed this recorder directly with a DOM.
This class is not synchronised.
| Constructor Summary | |
DOMRecorder()
|
|
| Method Summary | |
DiffXConfig |
getConfig()
Returns the configuration used by this recorder. |
EventSequence |
process(File file)
Runs the recorder on the specified file. |
EventSequence |
process(InputSource is)
Runs the recorder on the specified input source. |
EventSequence |
process(Node node)
Processed the given node and return the corresponding event sequence. |
EventSequence |
process(String xml)
Runs the recorder on the specified string. |
void |
setConfig(DiffXConfig config)
Sets the configuration used by this recorder. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DOMRecorder()
| Method Detail |
public DiffXConfig getConfig()
public void setConfig(DiffXConfig config)
config - The configuration used by this recorder.
public EventSequence process(File file)
throws LoadingException,
IOException
Recorder
process in interface Recorderfile - The file to process.
LoadingException - If thrown whilst parsing.
IOException - Should I/O error occur.Recorder.process(java.io.File)
public EventSequence process(String xml)
throws LoadingException
Recorder
process in interface Recorderxml - The string to process.
LoadingException - If thrown whilst parsing.Recorder.process(java.lang.String)
public EventSequence process(InputSource is)
throws LoadingException
process in interface XMLRecorderis - The input source.
LoadingException - If thrown whilst parsing.
public EventSequence process(Node node)
throws LoadingException
node - The W3C DOM node to be processed.
LoadingException - If thrown whilst parsing.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||