Package net.sourceforge.plantuml
Class FileUtils
- java.lang.Object
-
- net.sourceforge.plantuml.FileUtils
-
public class FileUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description FileUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
copyInternal(InputStream fis, OutputStream fos, boolean close)
static void
copyToFile(byte[] src, SFile dest)
static void
copyToFile(SFile src, SFile dest)
static void
copyToStream(File src, OutputStream os)
static void
copyToStream(InputStream is, OutputStream os)
static void
copyToStream(SFile src, OutputStream os)
static SFile
createTempFile(String prefix, String suffix)
static File
createTempFileLegacy(String prefix, String suffix)
static String
readFile(SFile svgFile)
static String
readSvg(InputStream is)
static String
readSvg(SFile svgFile)
static String
readText(InputStream is)
static void
resetCounter()
-
-
-
Method Detail
-
resetCounter
public static void resetCounter()
-
createTempFileLegacy
public static File createTempFileLegacy(String prefix, String suffix) throws IOException
- Throws:
IOException
-
createTempFile
public static SFile createTempFile(String prefix, String suffix) throws IOException
- Throws:
IOException
-
copyInternal
public static void copyInternal(InputStream fis, OutputStream fos, boolean close) throws IOException
- Throws:
IOException
-
copyToFile
public static void copyToFile(SFile src, SFile dest) throws IOException
- Throws:
IOException
-
copyToStream
public static void copyToStream(SFile src, OutputStream os) throws IOException
- Throws:
IOException
-
copyToStream
public static void copyToStream(File src, OutputStream os) throws IOException
- Throws:
IOException
-
copyToStream
public static void copyToStream(InputStream is, OutputStream os) throws IOException
- Throws:
IOException
-
copyToFile
public static void copyToFile(byte[] src, SFile dest) throws IOException
- Throws:
IOException
-
readSvg
public static String readSvg(SFile svgFile) throws IOException
- Throws:
IOException
-
readSvg
public static String readSvg(InputStream is) throws IOException
- Throws:
IOException
-
readText
public static String readText(InputStream is) throws IOException
- Throws:
IOException
-
readFile
public static String readFile(SFile svgFile) throws IOException
- Throws:
IOException
-
-