Class JaxbUtil
- java.lang.Object
-
- org.apache.karaf.features.internal.model.JaxbUtil
-
public final class JaxbUtil extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JaxbUtil.NoSourceAndNamespaceFilter
Provides an empty inputsource for the entity resolver.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
marshal(Features features, OutputStream out)
static void
marshal(Features features, Writer out)
static Features
unmarshal(String uri, boolean validate)
Read in a Features from the input stream.static Features
unmarshal(String uri, InputStream stream, boolean validate)
-
-
-
Method Detail
-
marshal
public static void marshal(Features features, OutputStream out) throws JAXBException
- Throws:
JAXBException
-
marshal
public static void marshal(Features features, Writer out) throws JAXBException
- Throws:
JAXBException
-
unmarshal
public static Features unmarshal(String uri, boolean validate)
Read in a Features from the input stream.- Parameters:
uri
- uri to readvalidate
- whether to validate the input.- Returns:
- a Features read from the input stream
-
unmarshal
public static Features unmarshal(String uri, InputStream stream, boolean validate)
-
-