public class CommitOutputStream extends OutputStream
| Constructor and Description |
|---|
CommitOutputStream(OutputStream sink) |
public CommitOutputStream(OutputStream sink)
public void write(int data)
write in class OutputStreampublic void write(byte[] buffer,
int offset,
int length)
write in class OutputStreampublic int getSize()
public void commit()
throws IOException
IOExceptionpublic void rollback()
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOException