@CatalogedBy(value=DataFormats.class) public interface DataFormat extends CatalogType
Modifier and Type | Method and Description |
---|---|
DataContainer |
readFrom(InputStream input)
Creates a new
DataContainer from the contents of the given
InputStream . |
void |
writeTo(OutputStream output,
DataView data)
|
getId, getName
DataContainer readFrom(InputStream input) throws InvalidDataFormatException, IOException
DataContainer
from the contents of the given
InputStream
.input
- The input streamInvalidDataFormatException
- If the data in the stream was not a
supported formatIOException
- If there was an error reading from the streamvoid writeTo(OutputStream output, DataView data) throws IOException
output
- The output stream to write the data todata
- The DataView to write to the streamIOException
- If there was an error writing to the stream