|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.co.silentsoftware.core.helpers.SaveHelper
public class SaveHelper
| Field Summary | |
|---|---|
static java.lang.String |
FILE_SUFFIX
The default file format and pre-suffix ".zx." |
| Constructor Summary | |
|---|---|
SaveHelper()
|
|
| Method Summary | |
|---|---|
static void |
saveBytes(byte[] bytes,
java.io.File file)
Saves raw byte data to the given file |
static void |
saveBytes(byte[] b,
java.io.File destFolder,
java.lang.String fileName,
java.lang.String suffix)
Saves raw byte data to the chosen output folder, but uses the given file filename + the given suffix |
static void |
saveImage(java.awt.image.BufferedImage output,
java.io.File destFile)
Write an image directly to the specified file |
static void |
saveImage(java.awt.image.BufferedImage output,
java.io.File destFolder,
java.lang.String fileName)
Saves the image to a file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FILE_SUFFIX
| Constructor Detail |
|---|
public SaveHelper()
| Method Detail |
|---|
public static void saveImage(java.awt.image.BufferedImage output,
java.io.File destFolder,
java.lang.String fileName)
output - destFolder - fileName -
public static void saveImage(java.awt.image.BufferedImage output,
java.io.File destFile)
output - destFile -
public static void saveBytes(byte[] bytes,
java.io.File file)
bytes - file -
public static void saveBytes(byte[] b,
java.io.File destFolder,
java.lang.String fileName,
java.lang.String suffix)
b - destFolder - fileName - suffix -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||