public class BlobOutputStream
extends java.io.OutputStream
Constructor and Description |
---|
BlobOutputStream(BlockStore store,
byte[] inode,
int inodeOffset)
Creates a blob output stream.
|
BlobOutputStream(DbTransaction xa,
BlockStore store,
byte[] inode,
int inodeOffset)
Creates a blob output stream.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Completes the stream.
|
void |
init(BlockStore store,
byte[] inode,
int inodeOffset)
Initialize the output stream.
|
void |
write(byte[] buffer,
int offset,
int length)
Writes a buffer.
|
void |
write(int v)
Writes a byte.
|
void |
writeFromStream(java.io.InputStream is) |
public BlobOutputStream(DbTransaction xa, BlockStore store, byte[] inode, int inodeOffset)
store
- the output storepublic BlobOutputStream(BlockStore store, byte[] inode, int inodeOffset)
store
- the output storepublic void init(BlockStore store, byte[] inode, int inodeOffset)
public void write(int v) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] buffer, int offset, int length) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void writeFromStream(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException