public class AtomicFileOutputStream extends FilterOutputStream
out| Constructor and Description | 
|---|
AtomicFileOutputStream(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. 
 | 
flush, write, writepublic AtomicFileOutputStream(File f) throws FileNotFoundException
FileNotFoundExceptionpublic void write(byte[] b,
                  int off,
                  int len)
           throws IOException
write in class FilterOutputStreamIOExceptionpublic void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionpublic void abort()
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.