public class XBFileIO extends Object implements CanEvaluate
| Constructor and Description |
|---|
XBFileIO(XBProjector xmlProjector,
File file)
Constructor for file input.
|
XBFileIO(XBProjector xmlProjector,
String fileName)
Convenient constructor using a filename.
|
| Modifier and Type | Method and Description |
|---|---|
XPathEvaluator |
evalXPath(String xpath) |
<T> T |
read(Class<T> projectionInterface)
Read a XML document and return a projection to it.
|
XBFileIO |
setAppend(boolean... append)
Set whether output should be append to existing file.
|
XBFileIO |
write(Object projection) |
public XBFileIO(XBProjector xmlProjector, File file)
xmlProjector - file - public XBFileIO(XBProjector xmlProjector, String fileName)
xmlProjector - fileName - public <T> T read(Class<T> projectionInterface) throws IOException
projectionInterface - IOExceptionpublic XBFileIO write(Object projection) throws IOException
projection - IOExceptionpublic XBFileIO setAppend(boolean... append)
append - optional parameter, default is true.public XPathEvaluator evalXPath(String xpath)
evalXPath in interface CanEvaluatexpath - to be evaluated on inputCopyright © 2012-12-21-2017. All Rights Reserved.