|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgcspy.utils.FileUtils
public class FileUtils
Utilities for file manipulation
Constructor Summary | |
---|---|
FileUtils()
|
Method Summary | |
---|---|
static boolean |
exportToTIFF(java.awt.image.RenderedImage image,
java.io.File file,
boolean overwrite)
Export a RenderedImage to a TIFF file |
static boolean |
exportToTIFF(java.awt.image.RenderedImage image,
java.lang.String fileName,
boolean overwrite)
Export a RenderedImage to a TIFF file |
static boolean |
fileExists(java.lang.String fileName)
Does a file exist. |
static long |
fileLength(java.lang.String fileName)
Return the lenght of a file |
static void |
read(java.io.InputStream in,
byte[] array,
int offset,
int len)
A read from an input stream into a byte array |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileUtils()
Method Detail |
---|
public static boolean fileExists(java.lang.String fileName)
fileName
-
public static long fileLength(java.lang.String fileName)
fileName
- The file's path name
public static void read(java.io.InputStream in, byte[] array, int offset, int len) throws java.io.IOException
in
- The input streamarray
- The target arrayoffset
- The offset in the filelen
- The number of bytes to read
java.io.IOException
public static boolean exportToTIFF(java.awt.image.RenderedImage image, java.io.File file, boolean overwrite)
image
- The imagefile
- The fileoverwrite
- Should the file be overwritten
public static boolean exportToTIFF(java.awt.image.RenderedImage image, java.lang.String fileName, boolean overwrite)
image
- The imagefileName
- The file's pathe nameoverwrite
- Should the file be overwritten
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |