Class FileUtils

java.lang.Object
net.sourceforge.plantuml.FileUtils

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    copyInternal(java.io.InputStream fis, java.io.OutputStream fos, boolean close)
     
    static void
    copyToFile(byte[] src, SFile dest)
     
    static void
    copyToFile(SFile src, SFile dest)
     
    static void
    copyToStream(java.io.File src, java.io.OutputStream os)
     
    static void
    copyToStream(java.io.InputStream is, java.io.OutputStream os)
     
    static void
    copyToStream(SFile src, java.io.OutputStream os)
     
    static SFile
    createTempFile(java.lang.String prefix, java.lang.String suffix)
     
    static java.io.File
    createTempFileLegacy(java.lang.String prefix, java.lang.String suffix)
     
    static java.lang.String
    readFile(SFile svgFile)
     
    static java.lang.String
    readSvg(java.io.InputStream is)
     
    static java.lang.String
    readSvg(SFile svgFile)
     
    static java.lang.String
    readText(java.io.InputStream is)
     
    static void
     

    Methods inherited from class java.lang.Object

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

    • FileUtils

      public FileUtils()
  • Method Details

    • resetCounter

      public static void resetCounter()
    • createTempFileLegacy

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

      public static SFile createTempFile(java.lang.String prefix, java.lang.String suffix) throws java.io.IOException
      Throws:
      java.io.IOException
    • copyInternal

      public static void copyInternal(java.io.InputStream fis, java.io.OutputStream fos, boolean close) throws java.io.IOException
      Throws:
      java.io.IOException
    • copyToFile

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

      public static void copyToStream(SFile src, java.io.OutputStream os) 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, SFile dest) throws java.io.IOException
      Throws:
      java.io.IOException
    • readSvg

      public static java.lang.String readSvg(SFile 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
    • readText

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

      public static java.lang.String readFile(SFile svgFile) throws java.io.IOException
      Throws:
      java.io.IOException