Package net.sourceforge.plantuml
Class FileUtils
java.lang.Object
net.sourceforge.plantuml.FileUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopyInternal(InputStream fis, OutputStream fos, boolean close) static byte[]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 Stringstatic byte[]readExactly(InputStream in, int n) static Stringstatic StringreadSvg(InputStream is) static Stringstatic StringreadText(InputStream is) static void
-
Constructor Details
-
FileUtils
public FileUtils()
-
-
Method Details
-
resetCounter
public static void resetCounter() -
readSvg
- Throws:
IOException
-
readSvg
- Throws:
IOException
-
copyInternal
public static void copyInternal(InputStream fis, OutputStream fos, boolean close) throws IOException - Throws:
IOException
-
readText
- Throws:
IOException
-
createTempFileLegacy
- Throws:
IOException
-
createTempFile
- Throws:
IOException
-
copyToFile
- Throws:
IOException
-
copyToStream
- Throws:
IOException
-
copyToStream
- Throws:
IOException
-
copyToStream
- Throws:
IOException
-
copyToByteArray
- Throws:
IOException
-
copyToFile
- Throws:
IOException
-
readFile
- Throws:
IOException
-
readStrings
- Throws:
IOException
-
readExactly
- Throws:
IOException
-
readAllBytes
- Throws:
IOException
-