public class MarshallerBuilder extends Object
| Constructor and Description |
|---|
MarshallerBuilder() |
| Modifier and Type | Method and Description |
|---|---|
<T> Marshaller |
createMarshaller(Class<T> clazz)
Создает маршаллер для класса любого типа
http://jaxb.java.net/tutorial/section_4_5-Calling-marshal.html#Calling%20marshal
|
<T> Marshaller |
createMarshaller(Class<T> clazz,
String encoding,
boolean formattedOutput,
String schemaLocation,
String noNamespaceSchemaLocation,
boolean fragment)
Создает маршаллер для класса любого типа Включена поддержка всех возможных свойств согласно
http://download.oracle.com/javase/6/docs/api/javax/xml/bind/Marshaller.html#supportedProps
|
public <T> Marshaller createMarshaller(Class<T> clazz) throws JAXBException
T - тип целевого классаclazz - сущность объекта, тип которого - целевой классJAXBException - ошибкиpublic <T> Marshaller createMarshaller(Class<T> clazz, String encoding, boolean formattedOutput, String schemaLocation, String noNamespaceSchemaLocation, boolean fragment) throws JAXBException
T - тип целевого классаclazz - сущность объекта, тип которого - целевой классencoding - кодировка (по умолчанию utf-8)formattedOutput - форматированный вывод (по умолчанию false)schemaLocation - установка атрибута xsi:schemaLocationnoNamespaceSchemaLocation - установка атрибута xsi:noNamespaceSchemaLocationJAXBException - ошибкиCopyright © 2012–2014 RedSoft. All rights reserved.