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

Quick Search    Search Deep

org.dom4j.io
Class SAXEventRecorder.SAXEvent  view SAXEventRecorder.SAXEvent download SAXEventRecorder.SAXEvent.java

java.lang.Object
  extended byorg.dom4j.io.SAXEventRecorder.SAXEvent
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable
Enclosing class:
SAXEventRecorder

static class SAXEventRecorder.SAXEvent
extends java.lang.Object
implements java.io.Externalizable


Field Summary
(package private) static byte ATTRIBUTE_DECL
           
(package private) static byte CHARACTERS
           
(package private) static byte COMMENT
           
(package private) static byte ELEMENT_DECL
           
(package private) static byte END_CDATA
           
(package private) static byte END_DOCUMENT
           
(package private) static byte END_DTD
           
(package private) static byte END_ELEMENT
           
(package private) static byte END_ENTITY
           
(package private) static byte END_PREFIX_MAPPING
           
protected  byte event
           
(package private) static byte EXTERNAL_ENTITY_DECL
           
(package private) static byte INTERNAL_ENTITY_DECL
           
protected  java.util.List parms
           
(package private) static byte PROCESSING_INSTRUCTION
           
static long serialVersionUID
           
(package private) static byte START_CDATA
           
(package private) static byte START_DOCUMENT
           
(package private) static byte START_DTD
           
(package private) static byte START_ELEMENT
           
(package private) static byte START_ENTITY
           
(package private) static byte START_PREFIX_MAPPING
           
 
Constructor Summary
  SAXEventRecorder.SAXEvent()
           
(package private) SAXEventRecorder.SAXEvent(byte event)
           
 
Method Summary
(package private)  void addParm(java.lang.Object parm)
           
(package private)  java.lang.Object getParm(int index)
           
 void readExternal(java.io.ObjectInput in)
          This method restores an object's state by reading in the instance data for the object from the passed in stream.
 void writeExternal(java.io.ObjectOutput out)
          This method is responsible for writing the instance data of an object to the passed in stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

PROCESSING_INSTRUCTION

static final byte PROCESSING_INSTRUCTION
See Also:
Constant Field Values

START_PREFIX_MAPPING

static final byte START_PREFIX_MAPPING
See Also:
Constant Field Values

END_PREFIX_MAPPING

static final byte END_PREFIX_MAPPING
See Also:
Constant Field Values

START_DOCUMENT

static final byte START_DOCUMENT
See Also:
Constant Field Values

END_DOCUMENT

static final byte END_DOCUMENT
See Also:
Constant Field Values

START_ELEMENT

static final byte START_ELEMENT
See Also:
Constant Field Values

END_ELEMENT

static final byte END_ELEMENT
See Also:
Constant Field Values

CHARACTERS

static final byte CHARACTERS
See Also:
Constant Field Values

START_DTD

static final byte START_DTD
See Also:
Constant Field Values

END_DTD

static final byte END_DTD
See Also:
Constant Field Values

START_ENTITY

static final byte START_ENTITY
See Also:
Constant Field Values

END_ENTITY

static final byte END_ENTITY
See Also:
Constant Field Values

START_CDATA

static final byte START_CDATA
See Also:
Constant Field Values

END_CDATA

static final byte END_CDATA
See Also:
Constant Field Values

COMMENT

static final byte COMMENT
See Also:
Constant Field Values

ELEMENT_DECL

static final byte ELEMENT_DECL
See Also:
Constant Field Values

ATTRIBUTE_DECL

static final byte ATTRIBUTE_DECL
See Also:
Constant Field Values

INTERNAL_ENTITY_DECL

static final byte INTERNAL_ENTITY_DECL
See Also:
Constant Field Values

EXTERNAL_ENTITY_DECL

static final byte EXTERNAL_ENTITY_DECL
See Also:
Constant Field Values

event

protected byte event

parms

protected java.util.List parms
Constructor Detail

SAXEventRecorder.SAXEvent

public SAXEventRecorder.SAXEvent()

SAXEventRecorder.SAXEvent

SAXEventRecorder.SAXEvent(byte event)
Method Detail

addParm

void addParm(java.lang.Object parm)

getParm

java.lang.Object getParm(int index)

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Description copied from interface: java.io.Externalizable
This method is responsible for writing the instance data of an object to the passed in stream. Note that this stream is not a subclass of OutputStream, but rather is a class that implements the ObjectOutput interface. That interface provides a number of methods for writing Java data values to a stream.

Not that the implementation of this method must be coordinated with the implementation of readExternal.

Specified by:
writeExternal in interface java.io.Externalizable

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.lang.ClassNotFoundException,
                         java.io.IOException
Description copied from interface: java.io.Externalizable
This method restores an object's state by reading in the instance data for the object from the passed in stream. Note that this stream is not a subclass of InputStream, but rather is a class that implements the ObjectInput interface. That interface provides a mechanism for reading in Java data types from a stream.

Note that this method must be compatible with writeExternal. It must read back the exact same types that were written by that method in the exact order they were written.

If this method needs to read back an object instance, then the class for that object must be found and loaded. If that operation fails, then this method throws a ClassNotFoundException

Specified by:
readExternal in interface java.io.Externalizable