org.objectweb.cjdbc.driver
Class BlobOutputStream
java.lang.Object
java.io.OutputStream
org.objectweb.cjdbc.driver.BlobOutputStream
- public class BlobOutputStream
- extends java.io.OutputStream
This class defines a BlobOutputStream.
TODO: we should implement close() then error once we are closed.
- Version:
- 1.0
- Author:
- Marc Herbert
Field Summary |
(package private) Blob |
blob
The actual Blob we are pointing to |
(package private) int |
currentPos
The current offset in the stream, counting from zero (NOT SQL style) |
Constructor Summary |
BlobOutputStream(Blob b,
int startPos)
Creates a new BlobOutputStream object pointing to the given
Blob (currently implemented as an array). |
Method Summary |
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.io.OutputStream |
close, flush, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
blob
Blob blob
- The actual Blob we are pointing to
currentPos
int currentPos
- The current offset in the stream, counting from zero (NOT SQL style)
BlobOutputStream
public BlobOutputStream(Blob b,
int startPos)
- Creates a new
BlobOutputStream
object pointing to the given
Blob (currently implemented as an array).
- Parameters:
b
- the reference to the underlying blobstartPos
- the starting position in the array (counting from zero).
write
public void write(int b)
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
OutputStream.write(int)
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
OutputStream.write(byte[], int, int)
Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.