|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectucar.unidata.io.RandomAccessFile
ucar.unidata.io.InMemoryRandomAccessFile
public class InMemoryRandomAccessFile
A RandomAccessFile stored entirely in memory as a byte array.
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.io.RandomAccessFile |
|---|
allFiles, BIG_ENDIAN, bigEndian, buffer, bufferStart, dataEnd, dataSize, debugAccess, debugLeaks, defaultBufferSize, endOfFile, file, fileChannel, filePosition, LITTLE_ENDIAN, location, openFiles, readonly, showOpen, showRead |
| Constructor Summary | |
|---|---|
InMemoryRandomAccessFile(String name,
byte[] data)
A RandomAccessFile stored entirely in memory as a byte array. |
|
| Method Summary | |
|---|---|
long |
length()
|
protected int |
read_(long pos,
byte[] b,
int offset,
int len)
|
long |
readToByteChannel(WritableByteChannel dest,
long offset,
long nbytes)
|
void |
setBufferSize(int bufferSize)
|
| Methods inherited from class ucar.unidata.io.RandomAccessFile |
|---|
close, flush, getAllFiles, getBufferSize, getDebugLeaks, getDebugNbytes, getDebugNseeks, getFD, getFilePointer, getLocation, getOpenFiles, getRandomAccessFile, isAtEndOfFile, order, read, read, read, readBoolean, readBuffer, readByte, readBytes, readBytes, readChar, readDouble, readDouble, readFloat, readFloat, readFully, readFully, readInt, readInt, readIntUnbuffered, readLine, readLong, readLong, readShort, readShort, readString, readUnsignedByte, readUnsignedShort, readUTF, searchForward, seek, setDebugAccess, setDebugLeaks, setExtendMode, setMinLength, skipBytes, toString, unread, write, write, write, writeBoolean, writeBoolean, writeByte, writeBytes, writeBytes, writeBytes, writeChar, writeChar, writeChars, writeDouble, writeDouble, writeFloat, writeFloat, writeInt, writeInt, writeLong, writeLong, writeShort, writeShort, writeUTF |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InMemoryRandomAccessFile(String name,
byte[] data)
name - used as the locationdata - the complete data file| Method Detail |
|---|
public long length()
length in class RandomAccessFilepublic void setBufferSize(int bufferSize)
setBufferSize in class RandomAccessFile
protected int read_(long pos,
byte[] b,
int offset,
int len)
throws IOException
read_ in class RandomAccessFileIOException
public long readToByteChannel(WritableByteChannel dest,
long offset,
long nbytes)
throws IOException
readToByteChannel in class RandomAccessFileIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||