org.ujmp.core.util.io
Class IntelligentFileWriter
- java.lang.Object
-
- java.io.Writer
-
- org.ujmp.core.util.io.IntelligentFileWriter
-
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable, java.lang.Appendable, java.lang.AutoCloseable
public class IntelligentFileWriter extends java.io.Writer implements java.lang.Appendable, java.io.Closeable, java.io.Flushable
-
-
Constructor Summary
Constructors Constructor and Description IntelligentFileWriter(java.io.File file)IntelligentFileWriter(java.io.File file, boolean append)IntelligentFileWriter(java.io.OutputStream outputStream)IntelligentFileWriter(java.lang.String filename)IntelligentFileWriter(java.lang.String filename, boolean append)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static voidappend(java.lang.String filename, java.lang.String text)voidclose()voidflush()static voidsave(java.io.File file, java.lang.String text)static voidsave(java.lang.String filename, java.lang.String text)voidwrite(char[] cbuf, int off, int len)static voidwrite(java.io.OutputStream os, java.lang.String text)
-
-
-
Constructor Detail
-
IntelligentFileWriter
public IntelligentFileWriter(java.lang.String filename) throws java.io.IOException, java.lang.ClassNotFoundException- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
IntelligentFileWriter
public IntelligentFileWriter(java.lang.String filename, boolean append) throws java.io.IOException, java.lang.ClassNotFoundException- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
IntelligentFileWriter
public IntelligentFileWriter(java.io.OutputStream outputStream) throws java.io.IOException- Throws:
java.io.IOException
-
IntelligentFileWriter
public IntelligentFileWriter(java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
IntelligentFileWriter
public IntelligentFileWriter(java.io.File file, boolean append) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
save
public static final void save(java.lang.String filename, java.lang.String text) throws java.lang.Exception- Throws:
java.lang.Exception
-
save
public static final void save(java.io.File file, java.lang.String text) throws java.lang.Exception- Throws:
java.lang.Exception
-
append
public static final void append(java.lang.String filename, java.lang.String text) throws java.lang.Exception- Throws:
java.lang.Exception
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein classjava.io.Writer- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Specified by:
flushin classjava.io.Writer- Throws:
java.io.IOException
-
write
public void write(char[] cbuf, int off, int len) throws java.io.IOException- Specified by:
writein classjava.io.Writer- Throws:
java.io.IOException
-
write
public static void write(java.io.OutputStream os, java.lang.String text)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG