Package com.android.dx.util
Class ByteArray.MyInputStream
java.lang.Object
java.io.InputStream
com.android.dx.util.ByteArray.MyInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
ByteArray
Helper class for
ByteArray.makeInputStream()
, which implements the
stream functionality.-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.InputStream
close, nullInputStream, read, readAllBytes, readNBytes, readNBytes, skip, skipNBytes, transferTo
-
Constructor Details
-
MyInputStream
public MyInputStream()
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
public int read(byte[] arr, int offset, int length) - Overrides:
read
in classInputStream
-
available
public int available()- Overrides:
available
in classInputStream
-
mark
public void mark(int reserve) - Overrides:
mark
in classInputStream
-
reset
public void reset()- Overrides:
reset
in classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-