|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.svrCore.AllExhibitProperties.ExhibitDataSource
public abstract static class AllExhibitProperties.ExhibitDataSource
Class that provides data source to get at exhibit data semi-random access or as a sequential stream. An implementor must override getRawFile() and may also override getInputStream() with a markable stream.
This does not hold a lock while calling back to the underlying data source in order to help avoid deadlocks.
The state of an InputStream returned by this is undefined after an IOException from the stream.
| Constructor Summary | |
|---|---|
AllExhibitProperties.ExhibitDataSource()
|
|
| Method Summary | |
|---|---|
java.io.InputStream |
getInputStream(ExhibitStaticAttr esa)
Get a the raw exhibit binary as a (markable) stream to read sequentially. |
abstract void |
getRawFile(java.nio.ByteBuffer buf,
Name.ExhibitFull exhibitName,
int position)
Read a chunk of the raw exhibit binary into the given buffer. |
boolean |
isExhibitFullyLoaded(ExhibitStaticAttr esa)
Check if the given exhibit is fully loaded in local/fast store; true if so. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AllExhibitProperties.ExhibitDataSource()
| Method Detail |
|---|
public boolean isExhibitFullyLoaded(ExhibitStaticAttr esa)
throws java.io.IOException
This is only a hint; an immediately following call to read the exhibit might find the exhibit no longer local.
The result is undefined for a non-existent exhibit.
This may always return false if not sure or not known.
java.io.IOException
public abstract void getRawFile(java.nio.ByteBuffer buf,
Name.ExhibitFull exhibitName,
int position)
throws java.io.IOException
java.io.IOExceptionpublic java.io.InputStream getInputStream(ExhibitStaticAttr esa)
The returned stream is thread-safe, but may not behave as expected is used by more than one thread at once, ie concurrent reads are not supported.
|
DHD Multimedia Gallery V1.60.69 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||