uk.co.silentsoftware.core.helpers
Class SaveHelper

java.lang.Object
  extended by uk.co.silentsoftware.core.helpers.SaveHelper

public class SaveHelper
extends java.lang.Object


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

FILE_SUFFIX

public static final java.lang.String FILE_SUFFIX
The default file format and pre-suffix ".zx."

See Also:
Constant Field Values
Constructor Detail

SaveHelper

public SaveHelper()
Method Detail

saveImage

public static void saveImage(java.awt.image.BufferedImage output,
                             java.io.File destFolder,
                             java.lang.String fileName)
Saves the image to a file

Parameters:
output -
destFolder -
fileName -

saveImage

public static void saveImage(java.awt.image.BufferedImage output,
                             java.io.File destFile)
Write an image directly to the specified file

Parameters:
output -
destFile -

saveBytes

public static void saveBytes(byte[] bytes,
                             java.io.File file)
Saves raw byte data to the given file

Parameters:
bytes -
file -

saveBytes

public 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

Parameters:
b -
destFolder -
fileName -
suffix -