public interface FileIO
Modifier and Type | Method and Description |
---|---|
<T> CloseableMap<T> |
bindAsMapOf(Class<T> valueType)
Bind complete document to a Map.
|
XPathBinder |
bindXPath(String xpath)
Evaluate given XPath and bind result to a List or Map.
|
XPathEvaluator |
evalXPath(String xpath) |
FileIO |
failIfNotExists(boolean... create)
Set whether files should be created if they don't exist.
|
<T> T |
read(Class<T> projectionInterface)
Read a XML document and return a projection to it.
|
<T> XBAutoMap<T> |
readAsMapOf(Class<T> valueType)
Read complete document to a Map.
|
FileIO |
setAppend(boolean... append)
Set whether output should be append to existing file.
|
void |
write(Object projection) |
<T> T read(Class<T> projectionInterface) throws IOException
projectionInterface
- IOException
void write(Object projection) throws IOException
projection
- IOException
FileIO setAppend(boolean... append)
append
- optional parameter, default is true.XPathEvaluator evalXPath(String xpath)
xpath
- CanEvaluate.evalXPath(java.lang.String)
<T> XBAutoMap<T> readAsMapOf(Class<T> valueType) throws IOException
valueType
- IOException
XPathBinder bindXPath(String xpath)
xpath
- <T> CloseableMap<T> bindAsMapOf(Class<T> valueType) throws IOException
valueType
- IOException
FileIO failIfNotExists(boolean... create)
Copyright © 2012-12-21-2022. All Rights Reserved.