com.deltaxml.odf
Class InvalidOdtFileException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.deltaxml.odf.OdfException
com.deltaxml.odf.OdtInputException
com.deltaxml.odf.InvalidOdtFileException
- All Implemented Interfaces:
- Serializable
public class InvalidOdtFileException
- extends OdtInputException
An exception indicating that a supplied file was not an ODT file as expected.
The method that threw this exception expects an ODT file matching the description
given below but the supplied file does not fit this description.
When an ODT file is expected as a parameter, it should match the following
- The file should be a Zip archive
- The Zip archive should contain a file called
content.xml
- The Zip archive should contain a file called
styles.xml
- The Zip archive should contain a file called
meta.xml
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
InvalidOdtFileException
public InvalidOdtFileException(File file)
- Constructs a new InvalidOdtFileException with a default message.
- Parameters:
file - the supplied File that is not an ODT file
InvalidOdtFileException
public InvalidOdtFileException(String message,
File file)
- Constructs a new InvalidOdtFileException with a configurable message.
- Parameters:
message - the exception messagefile - the supplied File that is not an ODT file
© 2001-2009 DeltaXML Ltd. All Rights Reserved.