|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.baka.ambient.collection.AbstractAudio
public abstract class AbstractAudio
Contains information about an audio file.
Constructor Summary | |
---|---|
protected |
AbstractAudio(String uri)
Creates new audio object instance. |
Method Summary | |
---|---|
abstract boolean |
exists()
Checks if the file denoted by this object exists. |
static AbstractAudio |
fromUri(String fileUri)
Returns the audio object instance from a file denoted by given URI. |
String |
getLocation()
Returns location of the audio file. |
abstract 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 readable (i.e. |
abstract 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(String uri)
uri
- the URIMethod Detail |
---|
public final 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 InputStream openInputStream() throws IOException
null
.
IOException
- if i/o error occurs.public abstract String getMimeType()
null
.public abstract long getSize()
public static AbstractAudio fromUri(String fileUri)
fileUri
- the URI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |