public class ImageFileFormat extends Object implements FileFormat
Constructor and Description |
---|
ImageFileFormat() |
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.
|
public Object readValue(InputStream in) throws Exception
FileFormat
readValue
in interface FileFormat
in
- a stream; not nullException
- any errorpublic void writeValue(Object value, OutputStream out)
FileFormat
writeValue
in interface FileFormat
value
- the value to write; not nullout
- the output stream; not nullpublic boolean isWriteSupported()
FileFormat
isWriteSupported
in interface FileFormat
public Collection<String> getFileExtensions()
FileFormat
getFileExtensions
in interface FileFormat
Copyright © 2010–2015. All rights reserved.