public class AtomicFileOutputStream
extends java.io.FilterOutputStream
Constructor and Description |
---|
AtomicFileOutputStream(java.io.File f) |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Close the atomic file, but do not "commit" the temporary file on top of
the destination.
|
void |
close() |
void |
write(byte[] b,
int off,
int len)
The default write method in FilterOutputStream does not call the write
method of its underlying input stream with the same arguments.
|
public AtomicFileOutputStream(java.io.File f) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.FilterOutputStream
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.FilterOutputStream
java.io.IOException
public void abort()
Copyright © 2019 The Apache Software Foundation