public class CommitOutputStream extends OutputStream
Constructor and Description |
---|
CommitOutputStream(OutputStream sink) |
public CommitOutputStream(OutputStream sink)
public void write(int data)
write
in class OutputStream
public void write(byte[] buffer, int offset, int length)
write
in class OutputStream
public int getSize()
public void commit() throws IOException
IOException
public void rollback()
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException