public class LazyFileOutputStream
extends java.io.OutputStream
| Modifier and Type | Field and Description |
|---|---|
private java.io.FileOutputStream |
delegee |
private java.io.File |
file |
| Constructor and Description |
|---|
LazyFileOutputStream(java.io.File file) |
LazyFileOutputStream(java.lang.String filename) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
equals(java.lang.Object obj) |
void |
flush() |
java.nio.channels.FileChannel |
getChannel() |
java.io.FileDescriptor |
getFD() |
int |
hashCode() |
private void |
initialize() |
java.lang.String |
toString() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public LazyFileOutputStream(java.lang.String filename)
public LazyFileOutputStream(java.io.File file)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic java.nio.channels.FileChannel getChannel()
public java.io.FileDescriptor getFD()
throws java.io.IOException
java.io.IOExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionOutputStream.write(byte[], int, int)public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamb - java.io.IOExceptionprivate void initialize()
throws java.io.FileNotFoundException
java.io.FileNotFoundException