|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdavmail.util.IOUtil
public final class IOUtil
Input output functions.
| Method Summary | |
|---|---|
static byte[] |
readFully(InputStream inputStream)
|
static BufferedImage |
resizeImage(BufferedImage inputImage,
int max)
Resize image to a max width or height image size. |
static byte[] |
resizeImage(byte[] inputBytes,
int max)
Resize image bytes to a max width or height image size. |
static void |
write(InputStream inputStream,
OutputStream outputStream)
Write all inputstream content to outputstream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void write(InputStream inputStream,
OutputStream outputStream)
throws IOException
inputStream - input streamoutputStream - output stream
IOException - on error
public static byte[] resizeImage(byte[] inputBytes,
int max)
throws IOException
inputBytes - input image bytesmax - max size
IOException - on error
public static BufferedImage resizeImage(BufferedImage inputImage,
int max)
inputImage - input imagemax - max size
public static byte[] readFully(InputStream inputStream)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||