Servertec
Persistent Object Store
1.4.1 09/04/2005

stec.xpos
Class ObjectStoreOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by stec.xpos.ObjectStoreOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class ObjectStoreOutputStream
extends java.io.OutputStream

Represents an output stream to a persistent object store value.

Since:
1.3.0 10/19/2003
See Also:
getOutputStream, getOutputStream, getOutputStream, OutputStream

Method Summary
 void close()
          Closes this output stream.
 int getType()
          Returns the output stream type.
 boolean isOpen()
          Returns whether this output stream is still open.
 int length()
          Returns the size in bytes of the output stream.
 void write(byte[] buffer)
          Writes the specified array of bytes to the output stream.
 void write(byte[] buffer, int offset, int length)
          Writes the specified array of bytes to the output stream.
 void write(int b)
          Writes the specified byte to the output stream.
 
Methods inherited from class java.io.OutputStream
flush
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

write

public final void write(int b)
                 throws java.io.IOException
Writes the specified byte to the output stream.

Specified by:
write in class java.io.OutputStream
Parameters:
b - the byte to write.
Throws:
java.io.IOException - if an I/O exception occurred.

write

public final void write(byte[] buffer)
                 throws java.io.IOException
Writes the specified array of bytes to the output stream.

Overrides:
write in class java.io.OutputStream
Parameters:
buffer - the array of bytes to write.
Throws:
java.io.IOException - if an I/O exception occurred.

write

public final void write(byte[] buffer,
                        int offset,
                        int length)
                 throws java.io.IOException
Writes the specified array of bytes to the output stream.

Overrides:
write in class java.io.OutputStream
Parameters:
buffer - the array of bytes to write.
offset - the starting offset into the buffer.
length - the number of bytes to write.
Throws:
java.io.IOException - if an I/O exception occurred.

getType

public final int getType()
                  throws java.io.IOException
Returns the output stream type.

Returns:
the output stream type.
Throws:
java.io.IOException - if an I/O exception occurred.

length

public final int length()
                 throws java.io.IOException
Returns the size in bytes of the output stream.

Returns:
the size in bytes of the output stream.
Throws:
java.io.IOException - if an I/O exception occurred.

isOpen

public final boolean isOpen()
                     throws java.io.IOException
Returns whether this output stream is still open.

Returns:
whether this output stream is still open.
Throws:
java.io.IOException - if an I/O exception occurred.

close

public final void close()
                 throws java.io.IOException
Closes this output stream.

Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream
Throws:
java.io.IOException - if this output stream is closed or if an I/O exception occurs.

Servertec
Persistent Object Store
1.4.1 09/04/2005

Copyright © 2001-2005 Servertec. All rights reserved.