|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents a data store with capabilities suitable for holding media data.
Method Summary | |
boolean |
canSeek()
Returns true if the file is capable of seeking. |
void |
close()
|
java.io.File |
getFile()
Returns a File object by which the contents can be read. |
long |
getFilePointer()
Returns the current position in the file. |
java.lang.String |
getPath()
Returns the pathname of the file if it has one, blank otherwise. |
MediaProperties |
getProperties()
|
boolean |
isStream()
Returns true if the source is a stream of indefinate length. |
long |
length()
Returns the length of the file. |
int |
read(byte[] b,
int off,
int len)
|
void |
releaseFile(java.io.File f)
Deletes the contents of the file if it's a temp file. |
void |
seek(long pos)
Moves the current position in the file. |
void |
setLength(long newLength)
|
void |
write(byte[] b,
int off,
int len)
|
Method Detail |
public java.io.File getFile() throws java.io.IOException
java.io.IOException
- public void releaseFile(java.io.File f) throws java.io.IOException
java.io.IOException
- public boolean isStream()
public java.lang.String getPath()
public MediaProperties getProperties()
public long length() throws java.io.IOException
java.io.IOException
- public boolean canSeek()
public void seek(long pos) throws java.io.IOException
pos
- the new current position.java.io.IOException
- public long getFilePointer() throws java.io.IOException
java.io.IOException
- public void setLength(long newLength) throws java.io.IOException
newLength
- java.io.IOException
- public int read(byte[] b, int off, int len) throws java.io.IOException
b
- off
- len
- java.io.IOException
- public void write(byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
- public void close() throws java.io.IOException
java.io.IOException
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |