@Internal public final class MiniJAXB extends Object
With jOOQ 3.12, the JAXB dependency has been removed in favour of this home grown solution. Due to the modularisation that happened with JDK 9+ and the removal of JAXB from the JDK 11+, it is unreasonable to leave the burden of properly configuring transitive JAXB dependency to jOOQ users.
Constructor and Description |
---|
MiniJAXB() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
append(T first,
T second)
Appends a
second JAXB annotated object to a
first one using Maven's
combine.children="append" semantics. |
static String |
marshal(XMLAppendable object) |
static void |
marshal(XMLAppendable object,
OutputStream out) |
static void |
marshal(XMLAppendable object,
Writer out) |
static <T extends XMLAppendable> |
unmarshal(File xml,
Class<T> type) |
static <T extends XMLAppendable> |
unmarshal(InputStream in,
Class<T> type) |
static <T extends XMLAppendable> |
unmarshal(Reader reader,
Class<T> type) |
static <T extends XMLAppendable> |
unmarshal(String xml,
Class<T> type) |
public static String marshal(XMLAppendable object)
public static void marshal(XMLAppendable object, OutputStream out)
public static void marshal(XMLAppendable object, Writer out)
public static <T extends XMLAppendable> T unmarshal(Reader reader, Class<T> type)
public static <T extends XMLAppendable> T unmarshal(InputStream in, Class<T> type)
public static <T extends XMLAppendable> T unmarshal(String xml, Class<T> type)
public static <T extends XMLAppendable> T unmarshal(File xml, Class<T> type)
public static <T> T append(T first, T second)
second
JAXB annotated object to a
first
one using Maven's
combine.children="append"
semantics.first
argument.Copyright © 2020. All rights reserved.