|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.io.RandomAccessFile
|
+--com.tuneology.avm.media.MediaFile
This class implements a file API suitable for media files.
| Constructor Summary | |
MediaFile(java.io.File f,
java.lang.String m)
|
|
MediaFile(java.lang.String n,
java.lang.String m)
|
|
| Method Summary | |
boolean |
canSeek()
Returns true if the file is capable of seeking. |
java.io.File |
getFile()
Returns a File object by which the contents can be read. |
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. |
void |
releaseFile(java.io.File f)
Deletes the contents of the file if it's a temp file. |
| Methods inherited from class java.io.RandomAccessFile |
close, getFD, getFilePointer, length, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.tuneology.avm.media.MediaData |
close, getFilePointer, length, read, seek, setLength, write |
| Constructor Detail |
public MediaFile(java.io.File f,
java.lang.String m)
throws java.io.FileNotFoundException
f - the file objectm - the access modeRandomAccessFile.RandomAccessFile(File, String)
public MediaFile(java.lang.String n,
java.lang.String m)
throws java.io.FileNotFoundException
n - the filenamem - the access modeRandomAccessFile.RandomAccessFile(String, String)| Method Detail |
public java.io.File getFile()
throws java.io.IOException
MediaDatagetFile in interface MediaDatajava.io.IOException - public java.lang.String getPath()
MediaDatagetPath in interface MediaDatacom.tuneology.avm.media.MediaDatapublic MediaProperties getProperties()
getProperties in interface MediaData
public void releaseFile(java.io.File f)
throws java.io.IOException
MediaDatareleaseFile in interface MediaDatajava.io.IOException - public boolean isStream()
isStream in interface MediaDatapublic boolean canSeek()
canSeek in interface MediaData
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||