|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.storage.pio.StorageAccessStream
public class StorageAccessStream
| Constructor Summary | |
|---|---|
StorageAccessStream(Storage store,
java.lang.String fname)
Create a StorageAccessStream |
|
| Method Summary | |
|---|---|
int |
available()
Check available space in a StorageAccessStream this is mostly applied for StorageAccessStream that access ByteStorage |
void |
close()
Close a StorageAccessStream wrapp the StorageException to IOException |
long |
pos()
Return the position of the pointer |
int |
read()
Read from the StorageAccessStream |
int |
read(byte[] b,
int off,
int len)
Read from the StorageAccessStream |
int |
readInt()
Read from the StorageAccessStream |
void |
seek(int pos)
Seek in a StorageAccessStream |
void |
write(byte[] b,
int off,
int len)
Write a byte array |
void |
write(int b)
Write a byte |
void |
writeInt(int v)
Write an int |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StorageAccessStream(Storage store,
java.lang.String fname)
throws java.io.IOException
store - the Storage to usefname - the filename for Storage to use
java.io.IOException| Method Detail |
|---|
public void close()
throws java.io.IOException
java.io.IOException
public void seek(int pos)
throws java.io.IOException
pos - the position to seek
java.io.IOException
public int available()
throws java.io.IOException
java.io.IOException
public long pos()
throws java.io.IOException
java.io.IOException
public int read()
throws java.io.IOException
java.io.IOException
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
b - the byte array to storeoff - the offsetlen - the length of the byte array
java.io.IOException
public int readInt()
throws java.io.IOException
java.io.IOException
public void write(int b)
throws java.io.IOException
b - the Byte
java.io.IOException
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
b - the byte arrayoff - offset in the streamlen - lenght of the stream
java.io.IOException
public void writeInt(int v)
throws java.io.IOException
v - the int
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||