|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ispheres.shared.objects.DigitalObject
public abstract class DigitalObject
The abstract ISphere object class from which all other classes in the object hierarchy inherit. Each and every digital object available within iSpheres must inherit this class
| Constructor Summary | |
|---|---|
DigitalObject(java.util.ArrayList<ISpheresStream> supportedStreams)
Default constructor. |
|
| Method Summary | |
|---|---|
static boolean |
extendsThis(java.lang.Class theClass)
Checks if the supplied class extends the digital object. |
java.lang.String |
getContentType()
|
protected ISpheresStream |
getCurrentStream()
|
abstract void |
populate(byte[] serialisedObject)
Populate the object with the data represented in serialisedObject. |
byte[] |
serialise()
|
void |
setCurrentStream(int index)
This function sets the current stream used to populate and serialise the object to the stream at the nominated index in 'streams'. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DigitalObject(java.util.ArrayList<ISpheresStream> supportedStreams)
supportedStreams - All the streams that can be used to populate and
serialise this particular digital object.| Method Detail |
|---|
public final java.lang.String getContentType()
protected final ISpheresStream getCurrentStream()
public abstract void populate(byte[] serialisedObject)
throws DigitalObjectException
serialisedObject - A serialised object.
DigitalObjectException - Thrown when unable to populate the digital
object.
public final byte[] serialise()
throws DigitalObjectException
DigitalObjectException - Thrown when unable to serialise the
digital object
FIXME ***AN ARRAY CAN HAVE A MAXIMUM OF Integer.MAX_VALUE ELEMENTS - this
will limit the size of objects we can serialise.public final void setCurrentStream(int index)
index - The index of the stream to use as the current stream.public static boolean extendsThis(java.lang.Class theClass)
theClass - The class to check if it extends digitalObject.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||