com.epam.xml
Interface XMLEngine<T>

All Known Implementing Classes:
XMLEngineImpl

public interface XMLEngine<T>

XMLEngine this is a tool for the serializes XML to Java objects, and in backward.


Method Summary
 void marshal(Class<?> source, XMLWriter xmlWriter)
          This method does not implemented for current time.
 T unmarshal(Class<?> source, DocumentReader reader, boolean replaceData)
          Converts the XML documents into java objects.
 T unmarshal(Class<?> source, InputStream inputStream, boolean replaceData)
          Converts the XML documents into java objects.
 T unmarshal(T source, DocumentReader reader, boolean replaceData)
          Converts the XML documents into java objects.
 

Method Detail

marshal

void marshal(Class<?> source,
             XMLWriter xmlWriter)
This method does not implemented for current time.

Parameters:
source - Instance of Object for marshal to XML.
xmlWriter - Instance of XMLWriter for write XML.

unmarshal

T unmarshal(Class<?> source,
            InputStream inputStream,
            boolean replaceData)
Converts the XML documents into java objects.

Parameters:
source - Instance of java object for serialize xml into this object.
inputStream - Stream of XML document.
replaceData -
Returns:
Instance of Java object.

unmarshal

T unmarshal(Class<?> source,
            DocumentReader reader,
            boolean replaceData)
Converts the XML documents into java objects.

Parameters:
source - Instance of java object for serialize xml into this object.
reader - Instance of Document reader.
replaceData -
Returns:
Instance of Java object.

unmarshal

T unmarshal(T source,
            DocumentReader reader,
            boolean replaceData)
Converts the XML documents into java objects.

Parameters:
source - Instance of java object for serialize xml into this object.
reader - Instance of Document reader.
replaceData -
Returns:
Instance of Java object.


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.