Documentation of 'org.ujmp.core.util.io.IntelligentFileWriter' Java class
IntelligentFileWriter
org.ujmp.core.util.io

Class 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static void append(java.lang.String filename, java.lang.String text) 
      void close() 
      void flush() 
      static void save(java.io.File file, java.lang.String text) 
      static void save(java.lang.String filename, java.lang.String text) 
      void write(char[] cbuf, int off, int len) 
      static void write(java.io.OutputStream os, java.lang.String text) 
      • Methods inherited from class java.io.Writer

        append, append, append, write, write, write, write
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Appendable

        append, append, append
    • Constructor Detail

      • IntelligentFileWriter

        public IntelligentFileWriter(java.lang.String filename)
                              throws java.io.IOException,
                                     java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • IntelligentFileWriter

        public IntelligentFileWriter(java.lang.String filename,
                                     boolean append)
                              throws java.io.IOException,
                                     java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.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:
        close in interface java.io.Closeable
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in class java.io.Writer
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        Specified by:
        flush in interface java.io.Flushable
        Specified by:
        flush in class java.io.Writer
        Throws:
        java.io.IOException
      • write

        public void write(char[] cbuf,
                          int off,
                          int len)
                   throws java.io.IOException
        Specified by:
        write in class java.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

You see the box below because you did not login.