Package net.sourceforge.plantuml
Class FileUtils
- java.lang.Object
-
- net.sourceforge.plantuml.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()
-
-
-
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)
-
-