|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
de.enough.polish.android.helper.ResourceInputStream
public class ResourceInputStream
Wraps input streams opened with getClass().getResourceAsStream(..).
| Constructor Summary | |
|---|---|
ResourceInputStream(String url,
int id,
InputStream in)
Creates a new resource input stream |
|
| Method Summary | |
|---|---|
int |
available()
|
void |
close()
|
boolean |
equals(Object o)
|
int |
getResourceId()
Retrieves the ID of the resource within R.java |
String |
getResourceUrl()
Retrieves the url or the original resource |
int |
hashCode()
|
void |
mark(int pos)
|
boolean |
markSupported()
|
int |
read()
|
int |
read(byte[] buf)
|
int |
read(byte[] buf,
int offset,
int len)
|
void |
reset()
|
long |
skip(long len)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceInputStream(String url,
int id,
InputStream in)
url - the URL of the resourceid - the ID of the resource (R.java)in - the actual input stream| Method Detail |
|---|
public String getResourceUrl()
public int getResourceId()
public int read()
throws IOException
read in class InputStreamIOException
public int available()
throws IOException
available in class InputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOExceptionpublic void mark(int pos)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStream
public int read(byte[] buf,
int offset,
int len)
throws IOException
read in class InputStreamIOException
public int read(byte[] buf)
throws IOException
read in class InputStreamIOException
public void reset()
throws IOException
reset in class InputStreamIOException
public long skip(long len)
throws IOException
skip in class InputStreamIOExceptionpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||