|
Servertec Persistent Object Store 1.4.1 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectstec.pos.ObjectStoreRandomAccessStream
public class ObjectStoreRandomAccessStream
Represents an random access stream to a persistent object store value.
getRandomAccessStream,
getRandomAccessStream,
getRandomAccessStream,
OutputStream| Method Summary | |
|---|---|
void |
close()
Closes this random access stream. |
int |
getType()
Returns the random access stream type. |
boolean |
isOpen()
Returns whether this random access stream is still open. |
int |
length()
Returns the size in bytes of the random access stream. |
int |
offset()
Returns the current offset into the random access stream. |
int |
read()
Reads a byte from the random access stream. |
int |
read(byte[] buffer)
Reads into the specified byte array from the random access stream. |
int |
read(byte[] buffer,
int offset,
int length)
Reads into the specified byte array from the random access stream. |
boolean |
readBoolean()
Reads a boolean from the random access stream. |
byte |
readByte()
Reads a byte from the random access stream. |
char |
readChar()
Reads a char from the random access stream. |
double |
readDouble()
Reads a double from the random access stream. |
float |
readFloat()
Reads a float from the random access stream. |
void |
readFully(byte[] buffer)
Reads into the specified byte array from the random access stream. |
void |
readFully(byte[] buffer,
int offset,
int length)
Reads into the specified byte array from the random access stream. |
int |
readInt()
Reads an int from the random access stream. |
java.lang.String |
readLine()
Reads a line from the random access stream. |
long |
readLong()
Reads a long from the random access stream. |
boolean |
readOnly()
Returns whether the random access stream is read-only. |
short |
readShort()
Reads a short from the random access stream. |
int |
readUnsignedByte()
Reads an unsigned byte from the random access stream. |
int |
readUnsignedShort()
Reads an unsigned short from the random access stream. |
java.lang.String |
readUTF()
Reads a UTF-8 encoded string from the random access stream. |
int |
seek(int n)
Sets the current offset into the random access stream to the specified offset. |
void |
setLength(int length)
Sets the length of the random access stream. |
int |
skip(int n)
Skips over the specified number of bytes. |
int |
skipBytes(int n)
Skips over the specified number of bytes. |
void |
write(byte[] buffer)
Writes the specified array of bytes to the random access stream. |
void |
write(byte[] buffer,
int offset,
int length)
Writes the specified array of bytes to the random access stream. |
void |
write(int b)
Writes the specified byte to the random access stream. |
void |
writeBoolean(boolean v)
Writes the specified boolean into the random access stream. |
void |
writeByte(int v)
Writes the specified byte into the random access stream. |
void |
writeBytes(java.lang.String s)
Writes the specified string as an array of bytes into the random access stream. |
void |
writeChar(int v)
Writes the specified char into the random access stream. |
void |
writeChars(java.lang.String s)
Writes the specified string as an array of chars into the random access stream. |
void |
writeDouble(double v)
Writes the specified double into the random access stream. |
void |
writeFloat(float v)
Writes the specified float into the random access stream. |
void |
writeInt(int v)
Writes the specified int into the random access stream. |
void |
writeLong(long v)
Writes the specified long into the random access stream. |
void |
writeShort(int v)
Writes the specified short into the random access stream. |
void |
writeUTF(java.lang.String s)
Writes the specified string as UTF-8 encoded string into the random access stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public final int read()
throws java.io.IOException
java.io.IOException - if an I/O exception occurred.
public final int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
buffer - the buffer to read into.offset - the starting offset into the buffer.length - the maximum number of bytes to read.
java.io.IOException - if an I/O exception occurred.
public final int read(byte[] buffer)
throws java.io.IOException
buffer - the buffer to read into.
java.io.IOException - if an I/O exception occurred.
public final void readFully(byte[] buffer,
int offset,
int length)
throws java.io.IOException
readFully in interface java.io.DataInputbuffer - the buffer to read into.offset - the starting offset into the buffer.length - the maximum number of bytes to read.
java.io.IOException - if an I/O exception occurred.
public final void readFully(byte[] buffer)
throws java.io.IOException
readFully in interface java.io.DataInputbuffer - the buffer to read into.
java.io.IOException - if an I/O exception occurred.
public final int skip(int n)
throws java.io.IOException
n - the number of bytes to skip.
java.io.IOException - if an I/O exception occurred.
public final int skipBytes(int n)
throws java.io.IOException
skipBytes in interface java.io.DataInputn - the number of bytes to skip.
java.io.IOException - if an I/O exception occurred.
public final int getType()
throws java.io.IOException
java.io.IOException - if an I/O exception occurred.
public final int length()
throws java.io.IOException
java.io.IOException - if an I/O exception occurred.
public final void setLength(int length)
throws java.io.IOException
the - new length of the random access stream.
java.io.IOException - if an I/O exception occurred.
public final int offset()
throws java.io.IOException
java.io.IOException - if an I/O exception occurred.
public final int seek(int n)
throws java.io.IOException
n - the current offset into the random access stream to the specified offset.
java.io.IOException - if an I/O exception occurred.
public final void write(int b)
throws java.io.IOException
write in interface java.io.DataOutputb - the byte to write.
java.io.IOException - if an I/O exception occurred.
public final void write(byte[] buffer)
throws java.io.IOException
write in interface java.io.DataOutputbuffer - the array of bytes to write.
java.io.IOException - if an I/O exception occurred.
public final void write(byte[] buffer,
int offset,
int length)
throws java.io.IOException
write in interface java.io.DataOutputbuffer - the array of bytes to write.offset - the starting offset into the buffer.length - the number of bytes to write.
java.io.IOException - if an I/O exception occurred.
public final boolean readBoolean()
throws java.io.IOException
readBoolean in interface java.io.DataInputjava.io.EOFException - if the end of stream was reached.
java.io.IOException - if an I/O exception occurred.
public final byte readByte()
throws java.io.IOException
readByte in interface java.io.DataInputjava.io.EOFException - if the end of stream was reached.
java.io.IOException - if an I/O exception occurred.
public final int readUnsignedByte()
throws java.io.IOException
readUnsignedByte in interface java.io.DataInputjava.io.EOFException - if the end of stream was reached.
java.io.IOException - if an I/O exception occurred.
public final short readShort()
throws java.io.IOException
readShort in interface java.io.DataInputjava.io.EOFException - if the end of stream was reached.
java.io.IOException - if an I/O exception occurred.
public final int readUnsignedShort()
throws java.io.IOException
readUnsignedShort in interface java.io.DataInputjava.io.EOFException - if the end of stream was reached.
java.io.IOException - if an I/O exception occurred.
public final char readChar()
throws java.io.IOException
readChar in interface java.io.DataInputjava.io.EOFException - if the end of stream was reached.
java.io.IOException - if an I/O exception occurred.
public final int readInt()
throws java.io.IOException
readInt in interface java.io.DataInputjava.io.EOFException - if the end of stream was reached.
java.io.IOException - if an I/O exception occurred.
public final long readLong()
throws java.io.IOException
readLong in interface java.io.DataInputjava.io.EOFException - if the end of stream was reached.
java.io.IOException - if an I/O exception occurred.
public final float readFloat()
throws java.io.IOException
readFloat in interface java.io.DataInputjava.io.EOFException - if the end of stream was reached.
java.io.IOException - if an I/O exception occurred.
public final double readDouble()
throws java.io.IOException
readDouble in interface java.io.DataInputjava.io.EOFException - if the end of stream was reached.
java.io.IOException - if an I/O exception occurred.
public final java.lang.String readLine()
throws java.io.IOException
readLine in interface java.io.DataInputjava.io.EOFException - if the end of stream was reached.
java.io.IOException - if an I/O exception occurred.
public final java.lang.String readUTF()
throws java.io.IOException
readUTF in interface java.io.DataInputjava.io.EOFException - if the end of stream was reached.
java.io.IOException - if an I/O exception occurred.
public final void writeBoolean(boolean v)
throws java.io.IOException
writeBoolean in interface java.io.DataOutputv - the boolean to write.
java.io.IOException - if an I/O exception occurred.
public final void writeByte(int v)
throws java.io.IOException
writeByte in interface java.io.DataOutputv - the byte to write.
java.io.IOException - if an I/O exception occurred.
public final void writeShort(int v)
throws java.io.IOException
writeShort in interface java.io.DataOutputv - the short to write.
java.io.IOException - if an I/O exception occurred.
public final void writeChar(int v)
throws java.io.IOException
writeChar in interface java.io.DataOutputv - the char to write.
java.io.IOException - if an I/O exception occurred.
public final void writeInt(int v)
throws java.io.IOException
writeInt in interface java.io.DataOutputv - the int to write.
java.io.IOException - if an I/O exception occurred.
public final void writeLong(long v)
throws java.io.IOException
writeLong in interface java.io.DataOutputv - the long to write.
java.io.IOException - if an I/O exception occurred.
public final void writeFloat(float v)
throws java.io.IOException
writeFloat in interface java.io.DataOutputv - the float to write.
java.io.IOException - if an I/O exception occurred.
public final void writeDouble(double v)
throws java.io.IOException
writeDouble in interface java.io.DataOutputv - the double to write.
java.io.IOException - if an I/O exception occurred.
public final void writeBytes(java.lang.String s)
throws java.io.IOException
writeBytes in interface java.io.DataOutputv - the string to write.
java.io.IOException - if an I/O exception occurred.
public final void writeChars(java.lang.String s)
throws java.io.IOException
writeChars in interface java.io.DataOutputv - the string to write.
java.io.IOException - if an I/O exception occurred.
public final void writeUTF(java.lang.String s)
throws java.io.IOException
writeUTF in interface java.io.DataOutputv - the string to write.
java.io.IOException - if an I/O exception occurred.
public final boolean isOpen()
throws java.io.IOException
java.io.IOException - if an I/O exception occurred.
public final boolean readOnly()
throws java.io.IOException
java.io.IOException
public final void close()
throws java.io.IOException
java.io.IOException - if this random access stream is closed or if an I/O exception occurs.
|
Servertec Persistent Object Store 1.4.1 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2001-2005 Servertec. All rights reserved.