|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.utilities.java.support.xml.SerializeSupport
public final class SerializeSupport
Set of helper functions for serializing/writing DOM nodes.
| Constructor Summary | |
|---|---|
private |
SerializeSupport()
Constructor. |
| Method Summary | |
|---|---|
static DOMImplementationLS |
getDomLsImplementation(Node node)
Gets the DOM, level 3, Load/Store implementation associated with the given node. |
static LSSerializer |
getLsSerializer(DOMImplementationLS domImplLS,
Map<String,Object> serializerParams)
Obtain a the DOM, level 3, Load/Save serializer LSSerializer instance from the given
DOMImplementationLS instance. |
static String |
nodeToString(Node node)
Converts a Node into a String using the DOM, level 3, Load/Save serializer. |
static String |
prettyPrintXML(Node node)
Pretty prints the XML node. |
static void |
writeNode(Node node,
OutputStream output)
Writes a Node out to a Writer using the DOM, level 3, Load/Save serializer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private SerializeSupport()
| Method Detail |
|---|
@Nonnull
public static String nodeToString(@Nonnull
Node node)
node - the node to be written to a string
@Nonnull
public static String prettyPrintXML(@Nonnull
Node node)
node - xml node to print
public static void writeNode(@Nonnull
Node node,
@Nonnull
OutputStream output)
node - the node to write outoutput - the output stream to write the XML to
@Nonnull
public static LSSerializer getLsSerializer(@Nonnull
DOMImplementationLS domImplLS,
@Nullable
Map<String,Object> serializerParams)
LSSerializer instance from the given
DOMImplementationLS instance.
The serializer instance will be configured with the parameters passed as the serializerParams
argument. It will also be configured with an LSSerializerFilter that shows all nodes to the filter, and
accepts all nodes shown.
domImplLS - the DOM Level 3 Load/Save implementation to useserializerParams - parameters to pass to the DOMConfiguration of the serializer instance, obtained
via LSSerializer.getDomConfig(). May be null.
@Nonnull
public static DOMImplementationLS getDomLsImplementation(@Nonnull
Node node)
node - the node, never null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||