public class Bind extends Object
| Constructor and Description |
|---|
Bind(javax.xml.bind.JAXBContext context,
Schema schema)
Creates Bind.
|
| Modifier and Type | Method and Description |
|---|---|
void |
marshal(String fileName,
Object object)
Writes given object to a file with given name validating it.
|
void |
marshal(Writer writer,
Object object)
Writes given object to given writer validating it.
|
Object |
unmarshal(Reader reader)
Retrieves object from given reader validation the input.
|
Object |
unmarshal(String fileName)
Retrieves object from a file with given name validating the input.
|
public Bind(javax.xml.bind.JAXBContext context, Schema schema)
context - JAXB contextschema - XML schemapublic void marshal(Writer writer, Object object)
writer - object - public void marshal(String fileName, Object object)
fileName - object - public Object unmarshal(Reader reader)
reader - Copyright © 2015. All Rights Reserved.