Class FileUtils


  • public class FileUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      FileUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void copyToFile​(byte[] src, java.io.File dest)  
      static void copyToFile​(java.io.File src, java.io.File dest)  
      static void copyToStream​(java.io.File src, java.io.OutputStream os)  
      static void copyToStream​(java.io.InputStream is, java.io.OutputStream os)  
      static java.io.File createTempFile​(java.lang.String prefix, java.lang.String suffix)  
      static java.awt.image.BufferedImage ImageIO_read​(java.io.File f)  
      static java.awt.image.BufferedImage ImageIO_read​(java.net.URL url)  
      static java.lang.String readFile​(java.io.File svgFile)  
      static java.lang.String readSvg​(java.io.File svgFile)  
      static java.lang.String readSvg​(java.io.InputStream is)  
      static void resetCounter()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileUtils

        public FileUtils()
    • Method Detail

      • resetCounter

        public static void resetCounter()
      • createTempFile

        public static java.io.File createTempFile​(java.lang.String prefix,
                                                  java.lang.String suffix)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • copyToFile

        public static void copyToFile​(java.io.File src,
                                      java.io.File dest)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • copyToStream

        public static void copyToStream​(java.io.File src,
                                        java.io.OutputStream os)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • copyToStream

        public static void copyToStream​(java.io.InputStream is,
                                        java.io.OutputStream os)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • copyToFile

        public static void copyToFile​(byte[] src,
                                      java.io.File dest)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • readSvg

        public static java.lang.String readSvg​(java.io.File svgFile)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readSvg

        public static java.lang.String readSvg​(java.io.InputStream is)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readFile

        public static java.lang.String readFile​(java.io.File svgFile)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • ImageIO_read

        public static java.awt.image.BufferedImage ImageIO_read​(java.io.File f)
      • ImageIO_read

        public static java.awt.image.BufferedImage ImageIO_read​(java.net.URL url)