Class SImageIO
- java.lang.Object
-
- net.sourceforge.plantuml.security.SImageIO
-
public class SImageIO extends Object
-
-
Constructor Summary
Constructors Constructor Description SImageIO()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ImageInputStream
createImageInputStream(InputStream is)
static ImageInputStream
createImageInputStream(Object obj)
static ImageInputStream
createImageInputStream(SFile file)
static ImageOutputStream
createImageOutputStream(OutputStream os)
static Iterator<ImageReader>
getImageReaders(ImageInputStream iis)
static Iterator<ImageWriter>
getImageWritersBySuffix(String string)
static BufferedImage
read(byte[] bytes)
static BufferedImage
read(File file)
static BufferedImage
read(InputStream is)
static BufferedImage
read(SFile file)
static void
write(RenderedImage image, String format, OutputStream os)
static void
write(RenderedImage image, String format, SFile file)
-
-
-
Method Detail
-
createImageOutputStream
public static ImageOutputStream createImageOutputStream(OutputStream os) throws IOException
- Throws:
IOException
-
write
public static void write(RenderedImage image, String format, OutputStream os) throws IOException
- Throws:
IOException
-
write
public static void write(RenderedImage image, String format, SFile file) throws IOException
- Throws:
IOException
-
read
public static BufferedImage read(File file) throws IOException
- Throws:
IOException
-
read
public static BufferedImage read(SFile file) throws IOException
- Throws:
IOException
-
read
public static BufferedImage read(InputStream is) throws IOException
- Throws:
IOException
-
read
public static BufferedImage read(byte[] bytes) throws IOException
- Throws:
IOException
-
createImageInputStream
public static ImageInputStream createImageInputStream(SFile file) throws IOException
- Throws:
IOException
-
createImageInputStream
public static ImageInputStream createImageInputStream(Object obj) throws IOException
- Throws:
IOException
-
createImageInputStream
public static ImageInputStream createImageInputStream(InputStream is) throws IOException
- Throws:
IOException
-
getImageReaders
public static Iterator<ImageReader> getImageReaders(ImageInputStream iis)
-
getImageWritersBySuffix
public static Iterator<ImageWriter> getImageWritersBySuffix(String string)
-
-