|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IRandomAccessReader
| Field Summary | |
|---|---|
static int |
FORWARD
|
static int |
REVERSE
|
| Method Summary | |
|---|---|
void |
close()
Close the media asset |
boolean |
exists()
Does the media asset exist |
String |
getBasePath()
Get the basePath for the random access reader |
int |
getDirecton()
Get the current direction hint for the random access reader. |
long |
getFilePointer()
Get the current byte location in the media asset |
String |
getMediaExtension()
Get the media extension |
String |
getMediaName()
Get the media name |
String |
getPath()
Get the unique path to the media asset item |
void |
init(IApplicationInstance appInstance,
IMediaStream stream,
String basePath,
String mediaName,
String mediaExtension)
Intialize RandomAccessReader |
boolean |
isOpen()
Is the media asset open |
long |
lastModified()
Return the lastModified date (same format as File.lastModified) |
long |
length()
Get the media asset length in bytes |
void |
open()
Open the media asset |
int |
read(byte[] buf,
int off,
int size)
Read bytes from the media asset |
void |
seek(long pos)
Seek to a position in the media asset |
void |
setDirecton(int directon)
Set the current direction hint |
| Field Detail |
|---|
static final int FORWARD
static final int REVERSE
| Method Detail |
|---|
void close()
throws java.io.IOException
java.io.IOExceptionboolean exists()
String getBasePath()
int getDirecton()
long getFilePointer()
String getMediaExtension()
String getMediaName()
String getPath()
void init(IApplicationInstance appInstance,
IMediaStream stream,
String basePath,
String mediaName,
String mediaExtension)
appInstance - application instancestream - parent stream if one existsbasePath - basePath for IApplicationInstancemediaName - media namemediaExtension - media extension from mediaReadersboolean isOpen()
long lastModified()
long length()
void open()
throws java.io.IOException
java.io.IOException
int read(byte[] buf,
int off,
int size)
buf - buffer to filloff - offset in buffersize - size of block to read
void seek(long pos)
pos - position to seek tovoid setDirecton(int directon)
directon - current direction hint for the random access reader
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||