public class RoverImageFile extends java.lang.Object implements Identifiable
This is an abstraction of an image file. It may or may not actually be loaded from a filesystem; that is up to the RoverStore implementation.
The distinction between this and RoverImage is that a RoverImage is an image placed on the map, with only a pointer to the RoverImageFile, which contains the contents.
Copyright 2009 Partner Software, Inc.
| Constructor and Description |
|---|
RoverImageFile(byte[] contents) |
RoverImageFile(java.lang.String name,
int id,
java.lang.String guid,
byte[] contents) |
RoverImageFile(VfsFile file) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Image |
createImage() |
byte[] |
getContents() |
java.lang.String |
getGuid()
Globally-unique ID (GUID) for this object.
|
int |
getId()
Numeric ID for this object.
|
java.lang.String |
getName()
Name of this object.
|
RoverImageFile |
withId(int id) |
public RoverImageFile(VfsFile file) throws java.io.IOException
java.io.IOExceptionpublic RoverImageFile(java.lang.String name,
int id,
java.lang.String guid,
byte[] contents)
public RoverImageFile(byte[] contents)
public RoverImageFile withId(int id)
public java.lang.String getGuid()
IdentifiablegetGuid in interface Identifiablepublic int getId()
IdentifiablegetId in interface Identifiablepublic java.lang.String getName()
IdentifiablegetName in interface Identifiablepublic byte[] getContents()
public java.awt.Image createImage()