|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.poi.poifs.filesystem.POIFSFileSystem
com.canoo.webtest.plugins.exceltest.RetryWithCapsPOIFSFileSystem
public class RetryWithCapsPOIFSFileSystem
Hack class to deal with Excel files generated by Crystal Decisions. The root element of an Excel file is supposed to be 'Workbook' but in Crystal Decisions files, it is 'WORKBOOK'. Excel will still open the file but it causes POI to fail upon opening the file. This class catches the FileNotFoundException that is thrown when this happens and tries again with the name capitalized.
| Constructor Summary | |
|---|---|
RetryWithCapsPOIFSFileSystem(InputStream inputStream)
|
|
| Method Summary | |
|---|---|
org.apache.poi.poifs.filesystem.DocumentInputStream |
createDocumentInputStream(String name)
|
| Methods inherited from class org.apache.poi.poifs.filesystem.POIFSFileSystem |
|---|
createDirectory, createDocument, createDocument, createNonClosingInputStream, getBigBlockSize, getRoot, getShortDescription, getViewableArray, getViewableIterator, hasPOIFSHeader, main, preferArray, writeFilesystem |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RetryWithCapsPOIFSFileSystem(InputStream inputStream)
throws IOException
IOException| Method Detail |
|---|
public org.apache.poi.poifs.filesystem.DocumentInputStream createDocumentInputStream(String name)
throws IOException
createDocumentInputStream in class org.apache.poi.poifs.filesystem.POIFSFileSystemIOException
|
Copyright © 2001-2007 Canoo Engineering AG, Basel. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||