Uses of Class
org.apache.poi.openxml4j.exceptions.InvalidFormatException
Packages that use InvalidFormatException
Package
Description
-
Uses of InvalidFormatException in org.apache.poi.ooxml
Methods in org.apache.poi.ooxml that throw InvalidFormatExceptionModifier and TypeMethodDescriptionPOIXMLRelation.getContents
(PackagePart corePart) Fetches the InputStream to read the contents, based of the specified core part, for which we are defined as a suitable relationshipprotected PackagePart[]
POIXMLDocument.getRelatedByType
(String contentType) Retrieves all the PackageParts which are defined as relationships of the base document with the specified content type.protected PackagePart
POIXMLDocumentPart.getTargetPart
(PackageRelationship rel) Get the PackagePart that is the target of a relationship from this Part.protected final void
POIXMLDocumentPart.rebase
(OPCPackage pkg) When you open something like a theme, call this to re-base the XML Document onto the core child of the current core document -
Uses of InvalidFormatException in org.apache.poi.openxml4j.opc
Methods in org.apache.poi.openxml4j.opc that throw InvalidFormatExceptionModifier and TypeMethodDescriptionstatic PackagePartName
PackagingURIHelper.createPartName
(String partName) Create an OPC compliant part name.static PackagePartName
PackagingURIHelper.createPartName
(String partName, PackagePart relativePart) Create an OPC compliant part name by resolving it using a base part.static PackagePartName
PackagingURIHelper.createPartName
(URI partUri) Create an OPC compliant part name by throwing an exception if the URI is not valid.static PackagePartName
PackagingURIHelper.createPartName
(URI partName, PackagePart relativePart) Create an OPC compliant part name by resolving it using a base part.OPCPackage.getPackageProperties()
Retrieves or creates if none exists, core package property part.OPCPackage.getParts()
Load the parts of the archive if it has not been done yet.protected abstract PackagePartCollection
OPCPackage.getPartsImpl()
Get all parts link to the package.protected PackagePartCollection
ZipPackage.getPartsImpl()
Retrieves the parts from this package.PackagePart.getRelatedPart
(PackageRelationship rel) Get the PackagePart that is the target of a relationship.PackagePart.getRelationships()
Retrieve all the relationships attached to this part.RelationshipSource.getRelationships()
Retrieve all the relationships attached to this.PackagePart.getRelationshipsByType
(String relationshipType) Retrieve all relationships attached to this part which have the specified type.RelationshipSource.getRelationshipsByType
(String relationshipType) Retrieve all relationships attached to this part which have the specified type.int
OPCPackage.getUnusedPartIndex
(String nameTemplate) Get an unused part index based on the namePattern, which doesn't exist yet and has the lowest positive indexint
PackagePartCollection.getUnusedPartIndex
(String nameTemplate) Get an unused part index based on the namePattern, which doesn't exist yet and has the lowest positive indexabstract boolean
PackagePart.load
(InputStream ios) Load the content of this part.static OPCPackage
Open a package with read/write permission.static OPCPackage
OPCPackage.open
(File file, PackageAccess access) Open a package.static OPCPackage
OPCPackage.open
(InputStream in) Open a package.static OPCPackage
Open a package with read/write permission.static OPCPackage
OPCPackage.open
(String path, PackageAccess access) Open a package.static OPCPackage
OPCPackage.open
(ZipEntrySource zipEntry) Open an user providedZipEntrySource
with read-only permission.static OPCPackage
OPCPackage.openOrCreate
(File file) Opens a package if it exists, else it creates one.void
PackageRelationshipCollection.parseRelationshipsPart
(PackagePart relPart) Parse the relationship part and add all relationship in this collection.void
OPCPackage.removePartRecursive
(PackagePartName partName) Remove a part from this package as well as its relationship part, if one exists, and all parts listed in the relationship part.void
PackagePart.setContentType
(String contentType) Set the content type.boolean
OPCPackage.validatePackage
(OPCPackage pkg) Validates the package compliance with the OPC specifications.Constructors in org.apache.poi.openxml4j.opc that throw InvalidFormatExceptionModifierConstructorDescriptionPackagePart
(OPCPackage pack, PackagePartName partName, String contentType) Constructor.protected
PackagePart
(OPCPackage pack, PackagePartName partName, ContentType contentType) Constructor.protected
PackagePart
(OPCPackage pack, PackagePartName partName, ContentType contentType, boolean loadRelationships) Constructor.PackageRelationshipCollection
(OPCPackage container) Constructor.PackageRelationshipCollection
(OPCPackage container, PackagePart part) Constructor.Constructor.ZipPackagePart
(OPCPackage container, org.apache.commons.compress.archivers.zip.ZipArchiveEntry zipEntry, PackagePartName partName, String contentType) Constructor. -
Uses of InvalidFormatException in org.apache.poi.openxml4j.opc.internal
Methods in org.apache.poi.openxml4j.opc.internal that throw InvalidFormatExceptionModifier and TypeMethodDescriptionboolean
MemoryPackagePart.load
(InputStream ios) PartUnmarshaller.unmarshall
(UnmarshallContext context, InputStream in) Save the content of the package in the streamConstructors in org.apache.poi.openxml4j.opc.internal that throw InvalidFormatExceptionModifierConstructorDescriptionContentType
(String contentType) Constructor.ContentTypeManager
(InputStream in, OPCPackage pkg) Constructor.MemoryPackagePart
(OPCPackage pack, PackagePartName partName, String contentType) Constructor.MemoryPackagePart
(OPCPackage pack, PackagePartName partName, String contentType, boolean loadRelationships) Constructor.PackagePropertiesPart
(OPCPackage pack, PackagePartName partName) Constructor.ZipContentTypeManager
(InputStream in, OPCPackage pkg) Delegate constructor to the super constructor. -
Uses of InvalidFormatException in org.apache.poi.openxml4j.opc.internal.unmarshallers
Methods in org.apache.poi.openxml4j.opc.internal.unmarshallers that throw InvalidFormatExceptionModifier and TypeMethodDescriptionvoid
PackagePropertiesUnmarshaller.checkElementForOPCCompliance
(Element el) Check the element for the following OPC compliance rules:PackagePropertiesUnmarshaller.unmarshall
(UnmarshallContext context, InputStream in) -
Uses of InvalidFormatException in org.apache.poi.xddf.usermodel.chart
Methods in org.apache.poi.xddf.usermodel.chart that throw InvalidFormatExceptionModifier and TypeMethodDescriptionXDDFChart.getWorkbook()
void
XDDFChart.saveWorkbook
(XSSFWorkbook workbook) this method write the XSSFWorkbook object data into embedded excel file -
Uses of InvalidFormatException in org.apache.poi.xslf.usermodel
Methods in org.apache.poi.xslf.usermodel that throw InvalidFormatExceptionModifier and TypeMethodDescriptionstatic XMLSlideShow
XSLFSlideShowFactory.createSlideShow
(File file, boolean readOnly) Creates the XMLSlideShow from the given File, which must exist and be readable.static XMLSlideShow
XSLFSlideShowFactory.createSlideShow
(InputStream stream) Creates a XMLSlideShow from the given InputStreamstatic Shape<?,
?> XSLFMetroShape.parseShape
(byte[] metroBytes) -
Uses of InvalidFormatException in org.apache.poi.xssf.eventusermodel
Methods in org.apache.poi.xssf.eventusermodel that throw InvalidFormatExceptionModifier and TypeMethodDescriptionXSSFReader.getSharedStringsData()
Returns an InputStream to read the contents of the shared strings table.XSSFReader.getSharedStringsTable()
Opens up the Shared Strings Table, parses it, and returns a handy object for working with shared strings.Returns an InputStream to read the contents of the specified Sheet.XSSFBReader.getSheetsData()
Returns an Iterator which will let you get at all the different Sheets in turn.XSSFReader.getSheetsData()
Returns an Iterator which will let you get at all the different Sheets in turn.XSSFReader.getStylesData()
Returns an InputStream to read the contents of the styles table.XSSFReader.getStylesTable()
Opens up the Styles Table, parses it, and returns a handy object for working with cell stylesXSSFReader.getThemesData()
Returns an InputStream to read the contents of the themes table.XSSFReader.getWorkbookData()
Returns an InputStream to read the contents of the main Workbook, which contains key overall data for the file, including sheet definitions. -
Uses of InvalidFormatException in org.apache.poi.xssf.usermodel
Methods in org.apache.poi.xssf.usermodel that throw InvalidFormatExceptionModifier and TypeMethodDescriptionstatic XSSFWorkbook
XSSFWorkbookFactory.createWorkbook
(File file, boolean readOnly) Creates the XSSFWorkbook from the given File, which must exist and be readable.static XSSFWorkbook
XSSFWorkbookFactory.createWorkbook
(InputStream stream) Creates a XSSFWorkbook from the given InputStreamvoid
XSSFWorkbook.setVBAProject
(XSSFWorkbook macroWorkbook) Adds a vbaProject.bin file taken from another, given workbook to this one.Constructors in org.apache.poi.xssf.usermodel that throw InvalidFormatExceptionModifierConstructorDescriptionXSSFWorkbook
(File file) Constructs a XSSFWorkbook object from a given file. -
Uses of InvalidFormatException in org.apache.poi.xwpf.usermodel
Methods in org.apache.poi.xwpf.usermodel that throw InvalidFormatExceptionModifier and TypeMethodDescriptionorg.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTInline
this method add chart template into documentXWPFRun.addPicture
(InputStream pictureData, int pictureType, String filename, int width, int height) Adds a picture to the run.XWPFDocument.addPictureData
(byte[] pictureData, int format) XWPFDocument.addPictureData
(InputStream is, int format) XWPFHeaderFooter.addPictureData
(byte[] pictureData, int format) Adds a picture to the document.XWPFHeaderFooter.addPictureData
(InputStream is, int format) Adds a picture to the document.protected void
Attach this chart known by its relation id to the given text run.XWPFDocument.createChart()
This method is used to create template for chart XML no need to read MS-Word file and modify chartsXWPFDocument.createChart
(int width, int height) This method is used to create template for chart XML no need to read MS-Word file and modify chartsint
XWPFDocument.getNextPicNameNumber
(int format) get the next free ImageNumber