java.lang.String name
Attribute
Namespace namespace
Namespace
of the Attribute
java.lang.String value
Attribute
AttributeType type
Attribute
boolean specified
java.lang.String text
Comment
Content.CType ctype
java.lang.String elementName
java.lang.String publicID
java.lang.String systemID
java.lang.String internalSubset
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
- if there is a reading problem.java.lang.ClassNotFoundException
- when a class cannot be foundDocument.writeObject(ObjectOutputStream)
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
The Stream protocol is:
java.io.IOException
- if there is a writing problem.java.lang.String baseURI
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
- if there is a reading problem.java.lang.ClassNotFoundException
- when a class cannot be foundElement.writeObject(ObjectOutputStream)
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
- if there is a writing problem.java.lang.String name
Namespace namespace
java.lang.String name
EntityRef
java.lang.String publicID
EntityRef
java.lang.String systemID
EntityRef
private java.lang.Object readResolve() throws java.io.InvalidObjectException
java.io.InvalidObjectException
- alwaysprivate java.lang.Object writeReplace()
java.lang.String target
java.lang.String rawData
java.lang.String value
java.lang.String name
Namespace namespace
int filterMask
java.lang.String name
Namespace namespace
Document partialDocument
int line
int col
int line
int col
int line
int col
int line
int col
int line
int col
int line
int col
int line
int col
protected final java.lang.Object writeReplace() throws java.io.ObjectStreamException
Note: Subclasses are not allowed to override this method to ensure valid serialization of all implementations.
java.io.ObjectStreamException
- never.org.jdom2.xpath.jaxen.JDOMNavigator navigator
Because of the need to wrap Namespace, we also need to unwrap namespace. Further, we can't re-use the details from one 'selectNodes' to another because the Document tree may have been modified between, and also, we do not want to be holding on to memory.
Finally, we want to pre-load the NamespaceContext with the namespaces that are in scope for the contextNode being searched.
So, we need to reset the Navigator before and after each use. try{} finally {} to the rescue.
Copyright © 2021 Jason Hunter, Brett McLaughlin. All Rights Reserved.