public abstract class Bridge<T> extends Object
Instances of this class is stateless and multi-thread safe. They are reentrant.
All the marshal operation generates fragments.
Subject to change without notice.
Modifier and Type | Field and Description |
---|---|
protected JAXBContextImpl |
context |
Modifier | Constructor and Description |
---|---|
protected |
Bridge(JAXBContextImpl context) |
Modifier and Type | Method and Description |
---|---|
JAXBRIContext |
getContext()
Gets the
JAXBRIContext to which this object belongs. |
abstract TypeReference |
getTypeReference()
Gets the
TypeReference from which this bridge was created. |
void |
marshal(BridgeContext context,
T object,
ContentHandler contentHandler) |
void |
marshal(BridgeContext context,
T object,
Node output) |
void |
marshal(BridgeContext context,
T object,
OutputStream output,
NamespaceContext nsContext) |
void |
marshal(BridgeContext context,
T object,
Result result) |
void |
marshal(BridgeContext context,
T object,
XMLStreamWriter output) |
abstract void |
marshal(Marshaller m,
T object,
ContentHandler contentHandler) |
abstract void |
marshal(Marshaller m,
T object,
Node output) |
abstract void |
marshal(Marshaller m,
T object,
OutputStream output,
NamespaceContext nsContext) |
abstract void |
marshal(Marshaller m,
T object,
Result result) |
abstract void |
marshal(Marshaller m,
T object,
XMLStreamWriter output) |
void |
marshal(T object,
ContentHandler contentHandler) |
void |
marshal(T object,
ContentHandler contentHandler,
AttachmentMarshaller am) |
void |
marshal(T object,
Node output) |
void |
marshal(T object,
OutputStream output,
NamespaceContext nsContext)
Marshals the specified type object with the implicit element name
associated with this instance of
Bridge . |
void |
marshal(T object,
OutputStream output,
NamespaceContext nsContext,
AttachmentMarshaller am) |
void |
marshal(T object,
Result result) |
void |
marshal(T object,
XMLStreamWriter output) |
void |
marshal(T object,
XMLStreamWriter output,
AttachmentMarshaller am) |
T |
unmarshal(BridgeContext context,
InputStream in) |
T |
unmarshal(BridgeContext context,
Node n) |
T |
unmarshal(BridgeContext context,
Source in) |
T |
unmarshal(BridgeContext context,
XMLStreamReader in) |
T |
unmarshal(InputStream in)
Unmarshals the specified type object.
|
T |
unmarshal(Node n)
Unmarshals the specified type object.
|
T |
unmarshal(Node n,
AttachmentUnmarshaller au) |
T |
unmarshal(Source in)
Unmarshals the specified type object.
|
T |
unmarshal(Source in,
AttachmentUnmarshaller au) |
abstract T |
unmarshal(Unmarshaller u,
InputStream in) |
abstract T |
unmarshal(Unmarshaller context,
Node n) |
abstract T |
unmarshal(Unmarshaller u,
Source in) |
abstract T |
unmarshal(Unmarshaller u,
XMLStreamReader in) |
T |
unmarshal(XMLStreamReader in)
Unmarshals the specified type object.
|
T |
unmarshal(XMLStreamReader in,
AttachmentUnmarshaller au) |
protected final JAXBContextImpl context
protected Bridge(JAXBContextImpl context)
public JAXBRIContext getContext()
JAXBRIContext
to which this object belongs.public final void marshal(T object, XMLStreamWriter output) throws JAXBException
JAXBException
- if there was an error while marshalling.public final void marshal(T object, XMLStreamWriter output, AttachmentMarshaller am) throws JAXBException
JAXBException
public final void marshal(BridgeContext context, T object, XMLStreamWriter output) throws JAXBException
JAXBException
public abstract void marshal(Marshaller m, T object, XMLStreamWriter output) throws JAXBException
JAXBException
public void marshal(T object, OutputStream output, NamespaceContext nsContext) throws JAXBException
Bridge
.nsContext
- if this marshalling is done to marshal a subelement, this NamespaceContext
represents in-scope namespace bindings available for that element. Can be null,
in which case JAXB assumes no in-scope namespaces.JAXBException
- if there was an error while marshalling.public void marshal(T object, OutputStream output, NamespaceContext nsContext, AttachmentMarshaller am) throws JAXBException
JAXBException
public final void marshal(BridgeContext context, T object, OutputStream output, NamespaceContext nsContext) throws JAXBException
JAXBException
public abstract void marshal(Marshaller m, T object, OutputStream output, NamespaceContext nsContext) throws JAXBException
JAXBException
public final void marshal(T object, Node output) throws JAXBException
JAXBException
public final void marshal(BridgeContext context, T object, Node output) throws JAXBException
JAXBException
public abstract void marshal(Marshaller m, T object, Node output) throws JAXBException
JAXBException
public final void marshal(T object, ContentHandler contentHandler) throws JAXBException
JAXBException
public final void marshal(T object, ContentHandler contentHandler, AttachmentMarshaller am) throws JAXBException
JAXBException
public final void marshal(BridgeContext context, T object, ContentHandler contentHandler) throws JAXBException
JAXBException
public abstract void marshal(Marshaller m, T object, ContentHandler contentHandler) throws JAXBException
JAXBException
public final void marshal(T object, Result result) throws JAXBException
JAXBException
public final void marshal(BridgeContext context, T object, Result result) throws JAXBException
JAXBException
public abstract void marshal(Marshaller m, T object, Result result) throws JAXBException
JAXBException
public final T unmarshal(XMLStreamReader in) throws JAXBException
in
- the parser must be pointing at a start tag
that encloses the XML type that this Bridge
is
instanciated for.JAXBException
- if there was an error while unmarshalling.public final T unmarshal(XMLStreamReader in, AttachmentUnmarshaller au) throws JAXBException
JAXBException
public final T unmarshal(BridgeContext context, XMLStreamReader in) throws JAXBException
JAXBException
public abstract T unmarshal(Unmarshaller u, XMLStreamReader in) throws JAXBException
JAXBException
public final T unmarshal(Source in) throws JAXBException
in
- the parser must be pointing at a start tag
that encloses the XML type that this Bridge
is
instanciated for.JAXBException
- if there was an error while unmarshalling.public final T unmarshal(Source in, AttachmentUnmarshaller au) throws JAXBException
JAXBException
public final T unmarshal(BridgeContext context, Source in) throws JAXBException
JAXBException
public abstract T unmarshal(Unmarshaller u, Source in) throws JAXBException
JAXBException
public final T unmarshal(InputStream in) throws JAXBException
in
- the parser must be pointing at a start tag
that encloses the XML type that this Bridge
is
instanciated for.JAXBException
- if there was an error while unmarshalling.public final T unmarshal(BridgeContext context, InputStream in) throws JAXBException
JAXBException
public abstract T unmarshal(Unmarshaller u, InputStream in) throws JAXBException
JAXBException
public final T unmarshal(Node n) throws JAXBException
n
- Node to be unmarshalled.JAXBException
- if there was an error while unmarshalling.public final T unmarshal(Node n, AttachmentUnmarshaller au) throws JAXBException
JAXBException
public final T unmarshal(BridgeContext context, Node n) throws JAXBException
JAXBException
public abstract T unmarshal(Unmarshaller context, Node n) throws JAXBException
JAXBException
public abstract TypeReference getTypeReference()
TypeReference
from which this bridge was created.Copyright © 2020 Oracle Corporation. All rights reserved.