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 voidcopyInternal(InputStream fis, OutputStream fos, boolean close)static voidcopyToFile(byte[] src, SFile dest)static voidcopyToFile(SFile src, SFile dest)static voidcopyToStream(File src, OutputStream os)static voidcopyToStream(InputStream is, OutputStream os)static voidcopyToStream(SFile src, OutputStream os)static SFilecreateTempFile(String prefix, String suffix)static FilecreateTempFileLegacy(String prefix, String suffix)static StringreadFile(SFile svgFile)static StringreadSvg(InputStream is)static StringreadSvg(SFile svgFile)static StringreadText(InputStream is)static voidresetCounter()
-
-
-
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
-
-