public interface ProjectionIO
Modifier and Type | Method and Description |
---|---|
FileIO |
file(File file)
Get access to the file IO.
|
FileIO |
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. |
StreamInput |
stream(InputStream is)
Get access to the stream IO
|
StreamOutput |
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. |
UrlIO |
url(String url)
Get access to the url IO.
|
FileIO file(File file)
file
- FileIO file(String fileName)
fileName
- UrlIO url(String url)
url
- StreamInput stream(InputStream is)
is
- StreamOutput 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
- IOException
String toURLAnnotationViaPOST(Object projection, Object... optionalParams) throws IOException, URISyntaxException
XBDocURL
annotation.projection
- optionalParams
- IOException
URISyntaxException
Copyright © 2012-12-21-2017. All Rights Reserved.