public interface WriteableModelSource
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
getSourceDescription() |
java.lang.String |
getSyntaxMimeType() |
boolean |
hasData() |
long |
readData(java.io.OutputStream sink)
read current data into the sink
|
long |
writeData(java.io.InputStream data)
Write new data in the expected format
|
java.lang.String getSyntaxMimeType()
default java.lang.String getSourceDescription()
long readData(java.io.OutputStream sink) throws java.io.IOException, ResourceModelSourceException
sink
- java.io.IOException
ResourceModelSourceException
boolean hasData()
readData(OutputStream)
is expected to succeed.long writeData(java.io.InputStream data) throws java.io.IOException, ResourceModelSourceException
data
- datajava.io.IOException
- if an IO error occursResourceModelSourceException
- if the data is not valid