java.lang.Object | |||
java.io.InputStream | Closeable | ||
android.content.res.AssetManager.AssetInputStream |
final | int | available() | ||||
Returns a int representing then number of bytes that are available before this InputStream will block. | ||||||
final | void | close() | ||||
Close the InputStream. | ||||||
final | int | getAssetInt() | ||||
final | void | mark(int readlimit) | ||||
Set a Mark position in this InputStream. | ||||||
final | boolean | markSupported() | ||||
Returns a boolean indicating whether or not this InputStream supports mark() and reset(). | ||||||
final | int | read(byte[] b, int off, int len) | ||||
Reads at most length bytes from the Stream and stores them
in byte array b starting at offset . |
||||||
final | int | read(byte[] b) | ||||
Reads bytes from the Stream and stores them in byte array b . |
||||||
final | int | read() | ||||
Reads a single byte from this InputStream and returns the result as an int. | ||||||
final | void | reset() | ||||
Reset this InputStream to the last marked location. | ||||||
final | long | skip(long n) | ||||
Skips n number of bytes in this InputStream. |
void | finalize() | |||||
Called by the virtual machine when there are no longer any (non-weak) references to the receiver. |
IOException |
---|
IOException |
---|
readLimit
indicates how many bytes can be read before a
mark is invalidated. Sending reset() will reposition the Stream back to
the marked position provided readLimit
has not been
surpassed.
This default implementation does nothing and concrete subclasses must provide their own implementations.
readlimit | the number of bytes to be able to read before invalidating the mark. |
---|
true
if mark() and reset() are supported,
false
otherwise.
length
bytes from the Stream and stores them
in byte array b
starting at offset
. Answer
the number of bytes actually read or -1 if no bytes were read and end of
stream was encountered.
b | the byte array in which to store the read bytes. |
---|---|
off | the offset in b to store the read bytes. |
len | the maximum number of bytes to store in b . |
IOException |
---|
b
.
Answer the number of bytes actually read or -1 if no bytes were read and
end of stream was encountered.
b | the byte array in which to store the read bytes. |
---|
IOException |
---|
IOException |
---|
readlimit
has been passed or no mark
has
been set, throw IOException. This implementation throws IOException and
concrete subclasses should provide proper implementations.
IOException |
---|
n
number of bytes in this InputStream. Subsequent
read()
's will not return these bytes unless
reset()
is used. This method may perform multiple reads to
read n
bytes. This default implementation reads
n
bytes into a temporary buffer. Concrete subclasses
should provide their own implementation.
n | the number of bytes to skip. |
---|
IOException |
---|
Note: The virtual machine assumes that the implementation in class Object is empty.
Throwable |
---|
Copyright 2007 Google Inc. | Build 0.9_r1-98467 - 14 Aug 2008 18:48 |