- java.lang.Object
-
- org.postgresql.pljava.internal.SyntheticXMLReader
-
- org.postgresql.pljava.internal.ByteBufferXMLReader
-
- org.postgresql.pljava.internal.VarlenaXMLRenderer
-
- org.postgresql.pljava.jdbc.PgNodeTreeAsXML
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,VarlenaWrapper
,XMLReader
public class PgNodeTreeAsXML extends VarlenaXMLRenderer
An adapter presenting PostgreSQL'spg_node_tree
type (a serialized representation of a tree data structure) through the XML API (in, currently, an ad-hoc, schemaless rendering, but one with which some practical use might be made of the information, after a little study).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.postgresql.pljava.internal.SyntheticXMLReader
SyntheticXMLReader.ApacheFeature, SyntheticXMLReader.EmptyAttributes2, SyntheticXMLReader.EventCarrier, SyntheticXMLReader.FluentAttributes2, SyntheticXMLReader.SAX2FEATURE, SyntheticXMLReader.SAX2PROPERTY
-
Nested classes/interfaces inherited from interface org.postgresql.pljava.internal.VarlenaWrapper
VarlenaWrapper.Input, VarlenaWrapper.Output, VarlenaWrapper.Verifier
-
-
Field Summary
Fields Modifier and Type Field Description static String
LBRA_TOK
static String
LPAR_TOK
static String
RBRA_TOK
static String
RPAR_TOK
-
Fields inherited from class org.postgresql.pljava.internal.VarlenaXMLRenderer
m_decoder
-
Fields inherited from class org.postgresql.pljava.internal.SyntheticXMLReader
m_attributes, NO_ATTRIBUTES
-
-
Method Summary
Modifier and Type Method Description protected SyntheticXMLReader.EventCarrier
next(ByteBuffer buf)
Return null if no more events available, or anEventCarrier
that carries one or more.-
Methods inherited from class org.postgresql.pljava.internal.VarlenaXMLRenderer
adopt, buffer, close, pin, toString, toString, unpin
-
Methods inherited from class org.postgresql.pljava.internal.ByteBufferXMLReader
next, parse
-
Methods inherited from class org.postgresql.pljava.internal.SyntheticXMLReader
exceptionCarrier, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, parse, parse, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty, sourceToReader, sysIdToInputStream, sysIdToReader
-
-
-
-
Field Detail
-
LPAR_TOK
public static final String LPAR_TOK
- See Also:
- Constant Field Values
-
RPAR_TOK
public static final String RPAR_TOK
- See Also:
- Constant Field Values
-
LBRA_TOK
public static final String LBRA_TOK
- See Also:
- Constant Field Values
-
RBRA_TOK
public static final String RBRA_TOK
- See Also:
- Constant Field Values
-
-
Method Detail
-
next
protected SyntheticXMLReader.EventCarrier next(ByteBuffer buf)
Description copied from class:ByteBufferXMLReader
Return null if no more events available, or anEventCarrier
that carries one or more.Start- and end-document events are supplied by the caller, and so should not be supplied here.
The pin on the underlying state is held.
- Specified by:
next
in classByteBufferXMLReader
- Parameters:
buf
- The buffer to read from. Itsposition
may be used to maintain input position.- Returns:
- An
SyntheticXMLReader.EventCarrier
representing some XML parse events, null if none remain.
-
-