|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.baka.ambient.collection.file.AbstractAudio
public abstract class AbstractAudio
Contains information about an audio file.
| Constructor Summary | |
|---|---|
protected |
AbstractAudio(java.lang.String uri)
Creates new audio object instance. |
| Method Summary | |
|---|---|
abstract boolean |
exists()
Checks if the file denoted by this object exists. |
static AbstractAudio |
fromUri(java.lang.String fileUri)
Returns the audio object instance from a file denoted by given URI. |
java.lang.String |
getLocation()
Returns location of the audio file. |
abstract java.lang.String |
getMimeType()
Returns the file MIME type. |
abstract long |
getSize()
Returns file size, in bytes. |
abstract boolean |
isReadable()
Checks if the file denoted by this object is playable (i.e. |
abstract java.io.InputStream |
openInputStream()
Reads the file contents. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractAudio(java.lang.String uri)
uri - the URI| Method Detail |
|---|
public final java.lang.String getLocation()
public abstract boolean exists()
true if the file exists, false
otherwise.public abstract boolean isReadable()
true if the file is readable, false
otherwise.
public abstract java.io.InputStream openInputStream()
throws java.io.IOException
null.
java.io.IOException - if i/o error occurs.public abstract java.lang.String getMimeType()
null.public abstract long getSize()
public static AbstractAudio fromUri(java.lang.String fileUri)
fileUri - the URI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||