|
||||||||||
| 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
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.io.RandomAccessFile |
|---|
BIG_ENDIAN, bigEndian, buffer, bufferStart, cached, dataEnd, dataSize, debugAccess, debugLeaks, defaultBufferSize, endOfFile, file, filePosition, LITTLE_ENDIAN, location, openFiles, readonly |
| Constructor Summary | |
|---|---|
InMemoryRandomAccessFile(java.lang.String location,
byte[] data)
Constructor for in-memory "files" |
|
| Method Summary | |
|---|---|
long |
length()
Get the length of the file. |
protected int |
read_(long pos,
byte[] b,
int offset,
int len)
read directly, without going through the buffer |
| Methods inherited from class ucar.unidata.io.RandomAccessFile |
|---|
close, flush, getFD, getFilePointer, getLocation, getRandomAccessFile, isAtEndOfFile, isCached, order, read, read, read, readBoolean, readByte, readBytes, readChar, readDouble, readDouble, readFloat, readFloat, readFully, readFully, readInt, readInt, readIntUnbuffered, readLine, readLong, readLong, readShort, readShort, readString, readUnsignedByte, readUnsignedShort, readUTF, seek, setCached, setDebugAccess, setDebugLeaks, setExtendMode, setMinLength, skipBytes, synch, 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(java.lang.String location,
byte[] data)
location - used as a namedata - the complete file| Method Detail |
|---|
public long length()
RandomAccessFile
length in class RandomAccessFile
protected int read_(long pos,
byte[] b,
int offset,
int len)
throws java.io.IOException
RandomAccessFile
read_ in class RandomAccessFilepos - _more_b - _more_offset - _more_len - _more_
java.io.IOException - _more_
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||