Package org.teavm.classlib.java.io
Class TByteArrayInputStream
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.io.TInputStream
org.teavm.classlib.java.io.TByteArrayInputStream
- All Implemented Interfaces:
TCloseable
,TAutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTByteArrayInputStream
(byte[] buf) TByteArrayInputStream
(byte[] buf, int offset, int length) -
Method Summary
Methods inherited from class org.teavm.classlib.java.io.TInputStream
nullInputStream, read, readNBytes, skipNBytes, transferTo
-
Field Details
-
buf
protected byte[] buf -
pos
protected int pos -
mark
protected int mark -
count
protected int count
-
-
Constructor Details
-
TByteArrayInputStream
public TByteArrayInputStream(byte[] buf, int offset, int length) -
TByteArrayInputStream
public TByteArrayInputStream(byte[] buf)
-
-
Method Details
-
read
public int read()- Specified by:
read
in classTInputStream
-
read
public int read(byte[] b, int off, int len) - Overrides:
read
in classTInputStream
-
skip
public long skip(long n) - Overrides:
skip
in classTInputStream
-
available
public int available()- Overrides:
available
in classTInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classTInputStream
-
mark
public void mark(int readAheadLimit) - Overrides:
mark
in classTInputStream
-
reset
public void reset()- Overrides:
reset
in classTInputStream
-
close
public void close()- Specified by:
close
in interfaceTAutoCloseable
- Specified by:
close
in interfaceTCloseable
- Overrides:
close
in classTInputStream
-
readAllBytes
- Overrides:
readAllBytes
in classTInputStream
- Throws:
IOException
-
readNBytes
- Overrides:
readNBytes
in classTInputStream
- Throws:
IOException
-