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.OutputStreamjava.io.IOExceptionpublic void write(byte[] buffer,
int offset,
int length)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void writeFromStream(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOException