public void write(Object obj, MessagePartInfo part, XMLStreamWriter output) { if (obj == null) { return; } super.write(obj, part, output); }
@SuppressWarnings("unchecked") public <T> DataWriter<T> createWriter(Class<T> cls) { if (cls == XMLStreamWriter.class) { return (DataWriter<T>) new XMLStreamDataWriter(); } else if (cls == Node.class) { return (DataWriter<T>) new NodeDataWriter(); } throw new UnsupportedOperationException("The type " + cls.getName() + " is not supported."); }
writeNode(nd, writer); } else { Source s = (Source) obj;
@SuppressWarnings("unchecked") public <T> DataWriter<T> createWriter(Class<T> cls) { if (cls == XMLStreamWriter.class) { return (DataWriter<T>) new XMLStreamDataWriter(); } else if (cls == Node.class) { return (DataWriter<T>) new NodeDataWriter(); } else { throw new UnsupportedOperationException("The type " + cls.getName() + " is not supported."); } }
writeNode(nd, writer); } else { Source s = (Source) obj;
public void write(Object obj, MessagePartInfo part, XMLStreamWriter output) { write(obj, output); }
@SuppressWarnings("unchecked") public <T> DataWriter<T> createWriter(Class<T> cls) { if (cls == XMLStreamWriter.class) { return (DataWriter<T>) new XMLStreamDataWriter(); } else if (cls == Node.class) { return (DataWriter<T>) new NodeDataWriter(); } throw new UnsupportedOperationException("The type " + cls.getName() + " is not supported."); }
writeNode(nd, writer); } else { Source s = (Source) obj;
public void write(Object obj, MessagePartInfo part, XMLStreamWriter output) { write(obj, output); }
@SuppressWarnings("unchecked") public <T> DataWriter<T> createWriter(Class<T> cls) { if (cls == XMLStreamWriter.class) { return (DataWriter<T>) new XMLStreamDataWriter(); } else if (cls == Node.class) { return (DataWriter<T>) new NodeDataWriter(); } else { throw new UnsupportedOperationException("The type " + cls.getName() + " is not supported."); } }
writeNode(nd, writer); } else { Source s = (Source) obj;
public void write(Object obj, MessagePartInfo part, XMLStreamWriter output) { write(obj, output); }
public void write(Object obj, MessagePartInfo part, XMLStreamWriter output) { write(obj, output); }