|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.RandomAccessFile | +--com.sun.jimi.util.FileRandomAccessStorage
Simple implementation of RandomAccessStorage using a RandomAccessFile for on-disk storage.
Inner Class Summary | |
protected class |
FileRandomAccessStorage.InputStreamWrapper
|
protected class |
FileRandomAccessStorage.OutputStreamWrapper
|
Field Summary | |
protected java.io.File |
file
|
protected java.io.InputStream |
in
|
protected java.io.OutputStream |
out
|
Constructor Summary | |
FileRandomAccessStorage(java.io.File file)
|
Method Summary | |
java.io.InputStream |
asInputStream()
|
java.io.OutputStream |
asOutputStream()
|
protected void |
finalize()
|
void |
seek(long pos)
Overriding but just calling the super method, hopefully this will help optimizeit track things. |
void |
skip(int bytes)
|
Methods inherited from class java.io.RandomAccessFile |
close,
getFD,
getFilePointer,
length,
read,
read,
read,
readBoolean,
readByte,
readChar,
readDouble,
readFloat,
readFully,
readFully,
readInt,
readLine,
readLong,
readShort,
readUnsignedByte,
readUnsignedShort,
readUTF,
setLength,
skipBytes,
write,
write,
write,
writeBoolean,
writeByte,
writeBytes,
writeChar,
writeChars,
writeDouble,
writeFloat,
writeInt,
writeLong,
writeShort,
writeUTF |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.io.InputStream in
protected java.io.OutputStream out
protected java.io.File file
Constructor Detail |
public FileRandomAccessStorage(java.io.File file) throws java.io.IOException
Method Detail |
public java.io.OutputStream asOutputStream()
public java.io.InputStream asInputStream()
public void skip(int bytes) throws java.io.IOException
public void seek(long pos) throws java.io.IOException
protected void finalize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |