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
public class IntelligentFileWriter
- extends Writer
- implements Appendable, Closeable, Flushable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntelligentFileWriter
public IntelligentFileWriter(String filename)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
IntelligentFileWriter
public IntelligentFileWriter(String filename,
boolean append)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
IntelligentFileWriter
public IntelligentFileWriter(OutputStream outputStream)
throws IOException
- Throws:
IOException
IntelligentFileWriter
public IntelligentFileWriter(File file)
throws IOException
- Throws:
IOException
IntelligentFileWriter
public IntelligentFileWriter(File file,
boolean append)
throws IOException
- Throws:
IOException
save
public static final void save(String filename,
String text)
throws Exception
- Throws:
Exception
append
public static final void append(String filename,
String text)
throws Exception
- Throws:
Exception
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Writer
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Specified by:
flush
in class Writer
- Throws:
IOException
write
public void write(char[] cbuf,
int off,
int len)
throws IOException
- Specified by:
write
in class Writer
- Throws:
IOException
write
public static void write(OutputStream os,
String text)
Copyright © 2010. All Rights Reserved.