Package aQute.lib.io
Class ByteBufferInputStream
java.lang.Object
java.io.InputStream
aQute.lib.io.ByteBufferInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionByteBufferInputStream
(byte[] b) ByteBufferInputStream
(byte[] b, int off, int len) ByteBufferInputStream
(ByteBuffer buffer) -
Method Summary
Modifier and TypeMethodDescriptionint
(package private) ByteBuffer
buffer()
For use byByteBufferOutputStream.write(InputStream)
void
close()
void
mark
(int readlimit) boolean
int
read()
int
read
(byte[] b, int off, int len) void
reset()
long
skip
(long n) toString()
Methods inherited from class java.io.InputStream
nullInputStream, read, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
bb
-
-
Constructor Details
-
ByteBufferInputStream
-
ByteBufferInputStream
public ByteBufferInputStream(byte[] b, int off, int len) -
ByteBufferInputStream
public ByteBufferInputStream(byte[] b)
-
-
Method Details
-
read
public int read()- Specified by:
read
in classInputStream
-
read
public int read(byte[] b, int off, int len) - Overrides:
read
in classInputStream
-
skip
public long skip(long n) - Overrides:
skip
in classInputStream
-
available
public int available()- Overrides:
available
in classInputStream
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
-
mark
public void mark(int readlimit) - Overrides:
mark
in classInputStream
-
reset
public void reset()- Overrides:
reset
in classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
buffer
ByteBuffer buffer()For use byByteBufferOutputStream.write(InputStream)
-
toString
-