Package org.postgresql.pljava.internal
Interface VarlenaWrapper
- All Superinterfaces:
AutoCloseable
,Closeable
,Datum
,DatumImpl
- All Known Implementing Classes:
VarlenaWrapper.Input
,VarlenaWrapper.Output
Interface that wraps a PostgreSQL native variable-length ("varlena") datum;
implementing classes present an existing one to Java as a readable
InputStream
, or allow a new one to be constructed by presenting a
writable OutputStream
.
Common to both is a method adopt()
, allowing native
code to reassert control over the varlena (for the writable variety, after
Java code has written and closed it), after which it is no longer accessible
from Java.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
A class by which Java reads the content of a varlena.static class
A class by which Java writes the content of a varlena as an OutputStream.static class
AVerifier
verifies the proper form of content written to aVarlenaWrapper.Output
.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.IStream<T extends DatumImpl.Input>
-
Method Summary
-
Method Details
-
toString
Return a string describing this object in a way useful for debugging, prefixed with the name (abbreviated for comfort) of the class of the object passed in (the normal JavatoString()
method should passthis
).Subclasses or consumers are encouraged to call this method and append further details specific to the subclass or consumer. The convention should be that the recursion will stop at some class that will actually construct the abbreviated class name of
o
and use it to prefix the returned value.
-