IOUtils.java
codebase/src/net/sourceforge/pain/util/IOUtils.java · 469 B
From the archive pain_0_45.tgz
Download the archive « Back to the archive contents
package net.sourceforge.pain.util;
import java.io.*;
public class IOUtils {
public static byte[] getFileData(String fullFilePath) throws IOException {
Log.debug("Loading file:" + fullFilePath);
InputStream is = new FileInputStream(fullFilePath);
try {
byte[] data = new byte[is.available()];
is.read(data);
return data;
} finally {
is.close();
}
}
}