dh.java.io
Class ByteBufferInputStream
java.lang.Object
java.io.InputStream
dh.java.io.ByteBufferInputStream
- All Implemented Interfaces:
- Closeable
public class ByteBufferInputStream
- extends InputStream
- See Also:
ByteArrayInputStream
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
protected ByteBuffer buffer
pos
protected int pos
mark
protected int mark
count
protected int count
ByteBufferInputStream
public ByteBufferInputStream(ByteBuffer buffer)
read
public int read()
- Specified by:
read
in class InputStream
read
public int read(byte[] b,
int off,
int len)
- Overrides:
read
in class InputStream
skip
public long skip(long n)
- Overrides:
skip
in class InputStream
available
public int available()
- Overrides:
available
in class InputStream
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class InputStream
mark
public void mark(int readAheadLimit)
- Overrides:
mark
in class InputStream
reset
public void reset()
- Overrides:
reset
in class InputStream
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class InputStream
- Throws:
IOException
Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.