Example #1
0
 void marshal(InMemory o, XMLSerializer out) throws IOException, SAXException, XMLStreamException {
   try {
     core.marshal(_adaptM(XMLSerializer.getInstance(), o), out);
   } catch (MarshalException e) {
     // recover from error by not marshalling this element.
   }
 }
Example #2
0
 public void marshal(Marshaller context, InMemory inMemory, ContentHandler contentHandler)
     throws JAXBException {
   core.marshal(context, adaptM(context, inMemory), contentHandler);
 }
Example #3
0
 public void marshal(Marshaller m, InMemory inMemory, Node output) throws JAXBException {
   core.marshal(m, adaptM(m, inMemory), output);
 }
Example #4
0
 public void marshal(Marshaller m, InMemory inMemory, OutputStream output, NamespaceContext nsc)
     throws JAXBException {
   core.marshal(m, adaptM(m, inMemory), output, nsc);
 }
Example #5
0
 public void marshal(Marshaller m, InMemory inMemory, XMLStreamWriter output)
     throws JAXBException {
   core.marshal(m, adaptM(m, inMemory), output);
 }
Example #6
0
 public BridgeAdapter(
     InternalBridge<OnWire> core, Class<? extends XmlAdapter<OnWire, InMemory>> adapter) {
   super(core.getContext());
   this.core = core;
   this.adapter = adapter;
 }
Example #7
0
 public TypeReference getTypeReference() {
   return core.getTypeReference();
 }
Example #8
0
 public @NotNull InMemory unmarshal(Unmarshaller u, Node n) throws JAXBException {
   return adaptU(u, core.unmarshal(u, n));
 }
Example #9
0
 public @NotNull InMemory unmarshal(Unmarshaller u, InputStream in) throws JAXBException {
   return adaptU(u, core.unmarshal(u, in));
 }
Example #10
0
 public void marshal(Marshaller context, InMemory inMemory, Result result) throws JAXBException {
   core.marshal(context, adaptM(context, inMemory), result);
 }