public class MemoryInputStream extends AbstractDataInput implements java.io.DataInput
DataInputPlus.DataInputStreamPlus| Constructor and Description |
|---|
MemoryInputStream(Memory mem) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getPosition() |
long |
getPositionLimit() |
protected long |
length() |
int |
read() |
void |
readFully(byte[] buffer,
int offset,
int count)
Read bytes from this file into
buffer starting at offset offset. |
void |
seek(long pos) |
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytesavailable, mark, markSupported, read, read, reset, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadBoolean, readByte, readChar, readDouble, readFloat, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytesreadUnsignedVInt, readVIntpublic MemoryInputStream(Memory mem)
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void readFully(byte[] buffer,
int offset,
int count)
throws java.io.IOException
AbstractDataInputbuffer starting at offset offset. This method blocks until count number of bytes have been
read.readFully in interface java.io.DataInputreadFully in class AbstractDataInputbuffer - the buffer to read bytes into.offset - the initial position in buffer to store the bytes read
from this file.count - the maximum number of bytes to store in buffer.java.io.EOFException - if the end of this file is detected.java.io.IOException - if this file is closed or another I/O error occurs.public void seek(long pos)
seek in class AbstractDataInputpublic long getPosition()
getPosition in class AbstractDataInputpublic long getPositionLimit()
getPositionLimit in class AbstractDataInputprotected long length()
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamCopyright © 2015 The Apache Software Foundation