public class MemoryInputStream
extends java.io.ByteArrayInputStream
| Constructor and Description |
|---|
MemoryInputStream(byte[] buf) |
MemoryInputStream(byte[] buf,
int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
long |
getPos() |
int |
read(long position,
byte[] buffer,
int offset,
int length) |
void |
readFully(long position,
byte[] buffer) |
void |
readFully(long position,
byte[] buffer,
int offset,
int length) |
void |
seek(long pos) |
boolean |
seekToNewSource(long targetPos) |
public MemoryInputStream(byte[] buf,
int offset,
int length)
public MemoryInputStream(byte[] buf)
public long getPos()
public void seek(long pos)
throws java.io.IOException
java.io.IOExceptionpublic boolean seekToNewSource(long targetPos)
throws java.io.IOException
java.io.IOExceptionpublic int read(long position,
byte[] buffer,
int offset,
int length)
throws java.io.IOException
java.io.IOExceptionpublic void readFully(long position,
byte[] buffer,
int offset,
int length)
throws java.io.IOException
java.io.IOExceptionpublic void readFully(long position,
byte[] buffer)
throws java.io.IOException
java.io.IOException