Package org.ujmp.core.util.io
Class IntelligentFileWriter
java.lang.Object
java.io.Writer
org.ujmp.core.util.io.IntelligentFileWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BufferedWriter
private String
private FileWriter
private static final String
private OutputStream
-
Constructor Summary
ConstructorsConstructorDescriptionIntelligentFileWriter
(File file) IntelligentFileWriter
(File file, boolean append) IntelligentFileWriter
(OutputStream outputStream) IntelligentFileWriter
(String filename) IntelligentFileWriter
(String filename, boolean append) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Appendable
append, append, append
-
Field Details
-
SEVENZIPOUTPUTSTREAM
- See Also:
-
fw
-
zip
-
bw
-
encoding
-
-
Constructor Details
-
IntelligentFileWriter
- Throws:
IOException
ClassNotFoundException
-
IntelligentFileWriter
public IntelligentFileWriter(String filename, boolean append) throws IOException, ClassNotFoundException - Throws:
IOException
ClassNotFoundException
-
IntelligentFileWriter
- Throws:
IOException
-
IntelligentFileWriter
- Throws:
IOException
-
IntelligentFileWriter
- Throws:
IOException
-
-
Method Details
-
save
- Throws:
Exception
-
save
- Throws:
Exception
-
append
- Throws:
Exception
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
write
- Specified by:
write
in classWriter
- Throws:
IOException
-
write
-