public class XmlFormater
extends java.lang.Object
| Constructor and Description |
|---|
XmlFormater() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
format(java.lang.Object item)
Format.
|
static byte[] |
format(java.lang.Object item,
java.util.Properties props)
Generates a byte array with the content of the item parameter that is
suitable to write a file with the XML representation or serialization
on disk.
|
static java.util.Properties |
getDefaultProperties()
Gets the default XML properties.
|
static java.util.Properties |
getDefaultProperties(DTSContainer dts,
net.sf.saxon.Configuration conf)
Gets the default XML properties.
|
public static java.util.Properties getDefaultProperties()
public static java.util.Properties getDefaultProperties(DTSContainer dts, net.sf.saxon.Configuration conf)
dts - the dtsconf - the confpublic static byte[] format(java.lang.Object item)
throws java.io.IOException
item - the itemjava.io.IOException - Signals that an I/O exception has occurred.public static byte[] format(java.lang.Object item,
java.util.Properties props)
throws java.io.IOException
item - the XML document or node to serialize to bytesprops - the properties used for the XML serializationjava.io.IOException - Signals that an I/O exception has occurred.Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa