public interface ProjectionIO
| Modifier and Type | Method and Description |
|---|---|
XBFileIO |
file(File file)
Get access to the file IO.
|
XBFileIO |
file(String fileName)
Get access to the file IO.
|
<T> T |
fromURLAnnotation(Class<T> projectionInterface,
Object... optionalParams)
Create a new projection using a
XBDocURL annotation on this interface. |
XBStreamInput |
stream(InputStream is)
Get access to the stream IO
|
XBStreamOutput |
stream(OutputStream os)
Get access to the stream IO
|
String |
toURLAnnotationViaPOST(Object projection,
Object... optionalParams)
Write projection document to url (file or http post) of
XBDocURL annotation. |
XBUrlIO |
url(String url)
Get access to the url IO.
|
XBFileIO file(File file)
file - XBFileIO file(String fileName)
fileName - XBUrlIO url(String url)
url - XBStreamInput stream(InputStream is)
is - XBStreamOutput stream(OutputStream os)
os - <T> T fromURLAnnotation(Class<T> projectionInterface, Object... optionalParams) throws IOException
XBDocURL annotation on this interface. When the
XBDocURL starts with the protocol identifier "resource://" the class loader of the projection
interface will be used to read the resource from the current class path.projectionInterface - a public interface.optionalParams - IOExceptionString toURLAnnotationViaPOST(Object projection, Object... optionalParams) throws IOException, URISyntaxException
XBDocURL annotation.projection - optionalParams - IOExceptionURISyntaxExceptionCopyright © 2012-12-21-2017. All Rights Reserved.