Class SecurityUtils
- java.lang.Object
-
- net.sourceforge.plantuml.security.SecurityUtils
-
public class SecurityUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SecurityUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
allowSvgText()
static java.io.FileOutputStream
createFileOutputStream(java.lang.String path)
static java.io.FileReader
createFileReader(java.lang.String path)
static java.io.PrintStream
createPrintStream(java.io.OutputStream os)
static java.io.PrintStream
createPrintStream(java.io.OutputStream os, boolean autoFlush, java.lang.String charset)
static java.io.PrintWriter
createPrintWriter(java.io.OutputStream os)
static java.io.PrintWriter
createPrintWriter(java.io.OutputStream os, boolean append)
static java.io.PrintWriter
createPrintWriter(java.lang.String path)
static java.lang.String
getenv(java.lang.String name)
static boolean
getJavascriptUnsecure()
static java.util.List<SFile>
getPath(java.lang.String prop)
static SecurityProfile
getSecurityProfile()
static java.awt.image.BufferedImage
readRasterImage(javax.swing.ImageIcon imageIcon)
-
-
-
Method Detail
-
getSecurityProfile
public static SecurityProfile getSecurityProfile()
-
getJavascriptUnsecure
public static boolean getJavascriptUnsecure()
-
getenv
public static java.lang.String getenv(java.lang.String name)
-
getPath
public static java.util.List<SFile> getPath(java.lang.String prop)
-
allowSvgText
public static boolean allowSvgText()
-
createPrintWriter
public static java.io.PrintWriter createPrintWriter(java.io.OutputStream os)
-
createPrintWriter
public static java.io.PrintWriter createPrintWriter(java.io.OutputStream os, boolean append)
-
createPrintStream
public static java.io.PrintStream createPrintStream(java.io.OutputStream os)
-
createPrintStream
public static java.io.PrintStream createPrintStream(java.io.OutputStream os, boolean autoFlush, java.lang.String charset) throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
-
readRasterImage
public static java.awt.image.BufferedImage readRasterImage(javax.swing.ImageIcon imageIcon)
-
createFileReader
public static java.io.FileReader createFileReader(java.lang.String path) throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
createPrintWriter
public static java.io.PrintWriter createPrintWriter(java.lang.String path) throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
createFileOutputStream
public static java.io.FileOutputStream createFileOutputStream(java.lang.String path) throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
-