public interface FileFormat
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getFileExtensions()
The file extensions supported by this file format.
|
boolean |
isWriteSupported()
Whether writes are supported.
|
Object |
readValue(InputStream in)
Reads the value from the given stream.
|
void |
writeValue(Object value,
OutputStream out)
Write the value to the given stream.
|
Object readValue(InputStream in) throws Exception
in
- a stream; not nullException
- any errorvoid writeValue(Object value, OutputStream out) throws Exception
value
- the value to write; not nullout
- the output stream; not nullException
- any errorboolean isWriteSupported()
Collection<String> getFileExtensions()
Copyright © 2010–2015. All rights reserved.