Package org.postgresql.pljava.internal
Class VarlenaXMLRenderer
java.lang.Object
org.postgresql.pljava.internal.SyntheticXMLReader
org.postgresql.pljava.internal.ByteBufferXMLReader
org.postgresql.pljava.internal.VarlenaXMLRenderer
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Datum
,DatumImpl
,XMLReader
- Direct Known Subclasses:
PgNodeTreeAsXML
Class adapting a
ByteBufferXMLReader
to a
Datum.Input
.-
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.adt.spi.Datum
Datum.Accessor<B,
L extends Datum.Layout>, Datum.Layout Nested classes/interfaces inherited from interface org.postgresql.pljava.pg.DatumImpl
DatumImpl.Input, DatumImpl.IStream<T extends DatumImpl.Input>
-
Field Summary
Fields inherited from class org.postgresql.pljava.internal.SyntheticXMLReader
m_attributes, NO_ATTRIBUTES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
adopt()
Dissociate the datum from Java and return its address to native code.protected ByteBuffer
buffer()
Return theByteBuffer
being wrapped.void
close()
protected void
pin()
Pin resources as needed during a reading operation.toString()
protected void
unpin()
Unpin resources after a reading operation.Methods inherited from class org.postgresql.pljava.internal.ByteBufferXMLReader
next, 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 Details
-
m_decoder
-
-
Constructor Details
-
VarlenaXMLRenderer
- Throws:
SQLException
-
-
Method Details
-
adopt
Description copied from interface:DatumImpl
Dissociate the datum from Java and return its address to native code.- Specified by:
adopt
in interfaceDatumImpl
- Throws:
SQLException
-
toString
-
toString
-
pin
Description copied from class:ByteBufferXMLReader
Pin resources as needed during a reading operation.The implementation is also responsible for tracking whether this instance has been closed, and throwing an exception if so.
- Specified by:
pin
in classByteBufferXMLReader
- Throws:
SQLException
-
unpin
protected void unpin()Description copied from class:ByteBufferXMLReader
Unpin resources after a reading operation.- Specified by:
unpin
in classByteBufferXMLReader
-
buffer
Description copied from class:ByteBufferXMLReader
Return theByteBuffer
being wrapped.All uses of the buffer in this class are preceded by
pin()
and followed byunpin()
.- Specified by:
buffer
in classByteBufferXMLReader
- Throws:
SQLException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-