gnu.iou
Class bbi
java.lang.Object
|
+--java.io.InputStream
|
+--gnu.iou.bbi
- public class bbi
- extends java.io.InputStream
Wrapper for `bbuf' exporting standard input API.
- Author:
- John Pritchard (john@syntelos.org)
- See Also:
bbuf
,
bbo
Constructor Summary |
bbi()
|
bbi(bbuf buf)
|
bbi(byte[] src)
|
bbi(java.io.InputStream src,
int many)
Read `many' bytes from the input stream `src' into this buffer. |
bbi(int capacity)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bbi
public bbi(int capacity)
bbi
public bbi()
bbi
public bbi(bbuf buf)
bbi
public bbi(byte[] src)
bbi
public bbi(java.io.InputStream src,
int many)
throws java.io.IOException
- Read `many' bytes from the input stream `src' into this buffer.
getByteBuffer
public bbuf getByteBuffer()
toByteArray
public byte[] toByteArray()
read
public int read()
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
read
public int read(byte[] b)
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
read
public int read(byte[] b,
int ofs,
int len)
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
available
public int available()
throws java.io.IOException
- Overrides:
available
in class java.io.InputStream
skip
public long skip(long n)
throws java.io.IOException
- Overrides:
skip
in class java.io.InputStream
close
public void close()
throws java.io.IOException
- Overrides:
close
in class java.io.InputStream
mark
public void mark(int m)
- Overrides:
mark
in class java.io.InputStream
reset
public void reset()
throws java.io.IOException
- Overrides:
reset
in class java.io.InputStream
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class java.io.InputStream