public class FileImageReference extends Object implements IImageReference
| Constructor and Description |
|---|
FileImageReference(File source,
String mime) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputStream |
getInputStream()
Returns the datastream containing this image.
|
String |
getMimeType()
This must return the image's actual mime type.
|
long |
getVersionLong()
If this retriever accesses resources that can change after use this must return some usable
indication of the version, usually a "last date changed" timestamp.
|
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface IImageReferenceIOExceptionpublic InputStream getInputStream() throws Exception
IImageReferencegetInputStream in interface IImageReferenceException@Nonnull public String getMimeType() throws Exception
IImageReferencegetMimeType in interface IImageReferenceExceptionpublic long getVersionLong()
throws Exception
IImageReferencegetVersionLong in interface IImageReferenceExceptionCopyright © 2017 etc.to. All rights reserved.