| |
|
| java.lang.Object org.apache.poi.hpsf.basic.Util
Util | public class Util (Code) | | Static utility methods needed by the HPSF test cases.
author: Rainer Klute (klute@rainer-klute.de) since: 2002-07-20 version: $Id: Util.java 489730 2006-12-22 19:18:16Z bayard $ |
copy | public static void copy(InputStream in, OutputStream out) throws IOException(Code) | | Reads bytes from an input stream and writes them to an
output stream until end of file is encountered.
Parameters: in - the input stream to read from Parameters: out - the output stream to write to exception: IOException - if an I/O exception occurs |
printSystemProperties | public static void printSystemProperties()(Code) | | Prints the system properties to System.out.
|
readPOIFiles | public static POIFile[] readPOIFiles(File poiFs) throws FileNotFoundException, IOException(Code) | | Reads all files from a POI filesystem and returns them as an
array of
POIFile instances. This method loads all files
into memory and thus does not cope well with large POI
filessystems.
Parameters: poiFs - The name of the POI filesystem as seen by theoperating system. (This is the "filename".) The POI files. The elements are ordered in the same wayas the files in the POI filesystem. exception: FileNotFoundException - if the file containing the POI filesystem does not exist exception: IOException - if an I/O exception occurs |
readPOIFiles | public static POIFile[] readPOIFiles(File poiFs, String[] poiFiles) throws FileNotFoundException, IOException(Code) | | Reads a set of files from a POI filesystem and returns them
as an array of
POIFile instances. This method loads all
files into memory and thus does not cope well with large POI
filessystems.
Parameters: poiFs - The name of the POI filesystem as seen by theoperating system. (This is the "filename".) Parameters: poiFiles - The names of the POI files to be read. The POI files. The elements are ordered in the same wayas the files in the POI filesystem. exception: FileNotFoundException - if the file containing the POI filesystem does not exist exception: IOException - if an I/O exception occurs |
readPropertySets | public static POIFile[] readPropertySets(File poiFs) throws FileNotFoundException, IOException(Code) | | Read all files from a POI filesystem which are property set streams
and returns them as an array of
org.apache.poi.hpsf.PropertySet instances.
Parameters: poiFs - The name of the POI filesystem as seen by theoperating system. (This is the "filename".) The property sets. The elements are ordered in the same wayas the files in the POI filesystem. exception: FileNotFoundException - if the file containing the POI filesystem does not exist exception: IOException - if an I/O exception occurs |
|
|
|