Uses of Class
org.apache.poi.openxml4j.exceptions.InvalidFormatException
-
-
Uses of InvalidFormatException in org.apache.poi.ooxml
Methods in org.apache.poi.ooxml that throw InvalidFormatException Modifier and Type Method Description InputStreamPOIXMLRelation. 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 PackagePartPOIXMLDocumentPart. getTargetPart(PackageRelationship rel)Get the PackagePart that is the target of a relationship from this Part.protected voidPOIXMLDocumentPart. 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 documentvoidPOIXMLProperties.CoreProperties. setCreated(String date)voidPOIXMLProperties.CoreProperties. setLastPrinted(String date)voidPOIXMLProperties.CoreProperties. setModified(String date) -
Uses of InvalidFormatException in org.apache.poi.ooxml.dev
Methods in org.apache.poi.ooxml.dev that throw InvalidFormatException Modifier and Type Method Description voidOOXMLLister. displayParts()Displays information on all the different parts of the OOXML file container.static voidOOXMLLister. main(String[] args) -
Uses of InvalidFormatException in org.apache.poi.openxml4j.opc
Methods in org.apache.poi.openxml4j.opc that throw InvalidFormatException Modifier and Type Method Description static PackagePartNamePackagingURIHelper. createPartName(String partName)Create an OPC compliant part name.static PackagePartNamePackagingURIHelper. createPartName(String partName, PackagePart relativePart)Create an OPC compliant part name by resolving it using a base part.static PackagePartNamePackagingURIHelper. createPartName(URI partUri)Create an OPC compliant part name by throwing an exception if the URI is not valid.static PackagePartNamePackagingURIHelper. createPartName(URI partName, PackagePart relativePart)Create an OPC compliant part name by resolving it using a base part.PackagePropertiesOPCPackage. getPackageProperties()Retrieves or creates if none exists, core package property part.ArrayList<PackagePart>OPCPackage. getParts()Load the parts of the archive if it has not been done yet.protected abstract PackagePartCollectionOPCPackage. getPartsImpl()Get all parts link to the package.protected PackagePartCollectionZipPackage. getPartsImpl()Retrieves the parts from this package.PackagePartPackagePart. getRelatedPart(PackageRelationship rel)Get the PackagePart that is the target of a relationship.PackageRelationshipCollectionPackagePart. getRelationships()Retrieve all the relationships attached to this part.PackageRelationshipCollectionPackagePart. getRelationshipsByType(String relationshipType)Retrieve all relationships attached to this part which have the specified type.intOPCPackage. getUnusedPartIndex(String nameTemplate)Get an unused part index based on the namePattern, which doesn't exist yet and has the lowest positive indexintPackagePartCollection. getUnusedPartIndex(String nameTemplate)Get an unused part index based on the namePattern, which doesn't exist yet and has the lowest positive indexabstract booleanPackagePart. load(InputStream ios)Load the content of this part.static OPCPackageOPCPackage. open(File file)Open a package with read/write permission.static OPCPackageOPCPackage. open(File file, PackageAccess access)Open a package.static OPCPackageOPCPackage. open(InputStream in)Open a package.static OPCPackageOPCPackage. open(String path)Open a package with read/write permission.static OPCPackageOPCPackage. open(String path, PackageAccess access)Open a package.static OPCPackageOPCPackage. open(ZipEntrySource zipEntry)Open an user providedZipEntrySourcewith read-only permission.static OPCPackageOPCPackage. openOrCreate(File file)Opens a package if it exists, else it creates one.voidPackageRelationshipCollection. parseRelationshipsPart(PackagePart relPart)Parse the relationship part and add all relationship in this collection.voidOPCPackage. 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.voidPackagePart. setContentType(String contentType)Set the content type.voidPackageProperties. setCreatedProperty(String created)Set the date of creation of the resource.voidPackageProperties. setLastPrintedProperty(String lastPrinted)Set the date and time of the last printing.voidPackageProperties. setModifiedProperty(String modified)Set the date on which the resource was changed.booleanOPCPackage. validatePackage(OPCPackage pkg)Validates the package compliance with the OPC specifications.Constructors in org.apache.poi.openxml4j.opc that throw InvalidFormatException Constructor Description PackagePart(OPCPackage pack, PackagePartName partName, String contentType)Constructor.PackagePart(OPCPackage pack, PackagePartName partName, ContentType contentType)Constructor.PackagePart(OPCPackage pack, PackagePartName partName, ContentType contentType, boolean loadRelationships)Constructor.PackageRelationshipCollection(OPCPackage container)Constructor.PackageRelationshipCollection(OPCPackage container, PackagePart part)Constructor.PackageRelationshipCollection(PackagePart part)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 InvalidFormatException Modifier and Type Method Description booleanEncryptedTempFilePackagePart. load(InputStream is)booleanMemoryPackagePart. load(InputStream is)booleanTempFilePackagePart. load(InputStream is)voidPackagePropertiesPart. setCreatedProperty(String created)Set the created date.voidPackagePropertiesPart. setLastPrintedProperty(String lastPrinted)Set last printed date.voidPackagePropertiesPart. setModifiedProperty(String modified)Set last modification date.PackagePartPartUnmarshaller. unmarshall(UnmarshallContext context, InputStream in)Save the content of the package in the streamConstructors in org.apache.poi.openxml4j.opc.internal that throw InvalidFormatException Constructor Description ContentType(String contentType)Constructor.ContentTypeManager(InputStream in, OPCPackage pkg)Constructor.EncryptedTempFilePackagePart(OPCPackage pack, PackagePartName partName, String contentType)Constructor.EncryptedTempFilePackagePart(OPCPackage pack, PackagePartName partName, String contentType, boolean loadRelationships)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.TempFilePackagePart(OPCPackage pack, PackagePartName partName, String contentType)Constructor.TempFilePackagePart(OPCPackage pack, PackagePartName partName, String contentType, boolean loadRelationships)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 InvalidFormatException Modifier and Type Method Description voidPackagePropertiesUnmarshaller. checkElementForOPCCompliance(Element el)Check the element for the following OPC compliance rules:PackagePartPackagePropertiesUnmarshaller. unmarshall(UnmarshallContext context, InputStream in) -
Uses of InvalidFormatException in org.apache.poi.poifs.crypt.dsig
Methods in org.apache.poi.poifs.crypt.dsig that throw InvalidFormatException Modifier and Type Method Description StringSignatureLine.AddPictureData. addPictureData(byte[] imageData, PictureType pictureType)Add picture data to the document -
Uses of InvalidFormatException in org.apache.poi.xddf.usermodel.chart
Methods in org.apache.poi.xddf.usermodel.chart that throw InvalidFormatException Modifier and Type Method Description XSSFWorkbookXDDFChart. getWorkbook()voidXDDFChart. saveWorkbook(XSSFWorkbook workbook)this method write the XSSFWorkbook object data into embedded excel file -
Uses of InvalidFormatException in org.apache.poi.xssf.eventusermodel
Methods in org.apache.poi.xssf.eventusermodel that throw InvalidFormatException Modifier and Type Method Description InputStreamXSSFReader. getSharedStringsData()Returns an InputStream to read the contents of the shared strings table.SharedStringsXSSFReader. getSharedStringsTable()Opens up the Shared Strings Table, parses it, and returns a handy object for working with shared strings.InputStreamXSSFReader. getSheet(String relId)Returns an InputStream to read the contents of the specified Sheet.Iterator<InputStream>XSSFBReader. getSheetsData()Returns an Iterator which will let you get at all the different Sheets in turn.Iterator<InputStream>XSSFReader. getSheetsData()Returns an Iterator which will let you get at all the different Sheets in turn.InputStreamXSSFReader. getStylesData()Returns an InputStream to read the contents of the styles table.StylesTableXSSFReader. getStylesTable()Opens up the Styles Table, parses it, and returns a handy object for working with cell stylesInputStreamXSSFReader. getThemesData()Returns an InputStream to read the contents of the themes table.InputStreamXSSFReader. 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 InvalidFormatException Modifier and Type Method Description voidXSSFWorkbook. 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 InvalidFormatException Constructor Description XSSFWorkbook(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 InvalidFormatException Modifier and Type Method Description org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTInlineXWPFRun. addChart(String chartRelId)this method add chart template into documentXWPFPictureXWPFRun. addPicture(InputStream pictureData, int pictureType, String filename, int width, int height)Adds a picture to the run.StringXWPFComments. addPictureData(byte[] pictureData, int format)Adds a picture to the comments.StringXWPFComments. addPictureData(InputStream is, int format)Adds a picture to the comments.StringXWPFDocument. addPictureData(byte[] pictureData, int format)StringXWPFDocument. addPictureData(InputStream is, int format)StringXWPFHeaderFooter. addPictureData(byte[] pictureData, int format)Adds a picture to the document.StringXWPFHeaderFooter. addPictureData(InputStream is, int format)Adds a picture to the document.protected voidXWPFChart. attach(String chartRelId, XWPFRun run)Attach this chart known by its relation id to the given text run.XWPFChartXWPFDocument. createChart()This method is used to create template for chart XML no need to read MS-Word file and modify chartsXWPFChartXWPFDocument. createChart(int width, int height)This method is used to create template for chart XML no need to read MS-Word file and modify chartsXWPFChartXWPFDocument. createChart(XWPFRun run, int width, int height)intXWPFDocument. getNextPicNameNumber(int format)get the next free ImageNumber
-