|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
it.unimi.dsi.fastutil.io.MeasurableInputStream
it.unimi.dsi.mg4j.io.ByteBufferInputStream
dsiutils.
@Deprecated public class ByteBufferInputStream
A bridge between byte buffers and input streams.
The main usefulness of this class is that of making it possible creating input streams
that are really based on a MappedByteBuffer.
| Constructor Summary | |
|---|---|
ByteBufferInputStream(ByteBuffer byteBuffer)
Deprecated. Creates a new byte-buffer input stream. |
|
| Method Summary | |
|---|---|
int |
available()
Deprecated. |
long |
length()
Deprecated. |
void |
mark(int unused)
Deprecated. |
boolean |
markSupported()
Deprecated. |
long |
position()
Deprecated. |
void |
position(long newPosition)
Deprecated. |
int |
read()
Deprecated. |
int |
read(byte[] b,
int offset,
int length)
Deprecated. |
void |
reset()
Deprecated. |
long |
skip(long n)
Deprecated. |
| Methods inherited from class java.io.InputStream |
|---|
close, read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteBufferInputStream(ByteBuffer byteBuffer)
byteBuffer - the underlying byte buffer.| Method Detail |
|---|
public int available()
available in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic void mark(int unused)
mark in class InputStream
public void reset()
throws IOException
reset in class InputStreamIOException
public long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int read()
read in class InputStream
public int read(byte[] b,
int offset,
int length)
read in class InputStream
public long length()
throws IOException
length in class MeasurableInputStreamIOException
public long position()
throws IOException
position in interface RepositionableStreamposition in class MeasurableInputStreamIOException
public void position(long newPosition)
throws IOException
position in interface RepositionableStreamIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||