|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.baka.ambient.collection.AbstractAudio
sk.baka.ambient.collection.MediaStoreAudio
public final class MediaStoreAudio
Denotes a file in the MediaStore.
| Constructor Summary | |
|---|---|
MediaStoreAudio(String uri)
Creates new object instance. |
|
| Method Summary | |
|---|---|
boolean |
exists()
Checks if the file denoted by this object exists. |
String |
getMimeType()
Returns the file MIME type. |
long |
getSize()
Returns file size, in bytes. |
boolean |
isReadable()
Checks if the file denoted by this object is readable (i.e. |
InputStream |
openInputStream()
Reads the file contents. |
| Methods inherited from class sk.baka.ambient.collection.AbstractAudio |
|---|
fromUri, getLocation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
MediaStoreAudio(String uri)
uri - the "content://" URI.| Method Detail |
|---|
public boolean exists()
AbstractAudio
exists in class AbstractAudiotrue if the file exists, false
otherwise.public String getMimeType()
AbstractAudio
getMimeType in class AbstractAudionull.public long getSize()
AbstractAudio
getSize in class AbstractAudiopublic boolean isReadable()
AbstractAudio
isReadable in class AbstractAudiotrue if the file is readable, false
otherwise.
public InputStream openInputStream()
throws IOException
AbstractAudio
openInputStream in class AbstractAudionull.
IOException - if i/o error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||