Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
POIXMLRelation.getContents(PackagePart corePart)
Fetches the InputStream to read the contents, based
of the specified core part, for which we are defined
as a suitable relationship
|
protected PackagePart[] |
POIXMLDocument.getRelatedByType(java.lang.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 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
|
void |
POIXMLProperties.CoreProperties.setCreated(java.lang.String date) |
void |
POIXMLProperties.CoreProperties.setLastPrinted(java.lang.String date) |
void |
POIXMLProperties.CoreProperties.setModified(java.lang.String date) |
Modifier and Type | Method and Description |
---|---|
void |
OOXMLLister.displayParts()
Displays information on all the different
parts of the OOXML file container.
|
static void |
OOXMLLister.main(java.lang.String[] args) |
Modifier and Type | Method and Description |
---|---|
static PackagePartName |
PackagingURIHelper.createPartName(java.lang.String partName)
Create an OPC compliant part name.
|
static PackagePartName |
PackagingURIHelper.createPartName(java.lang.String partName,
PackagePart relativePart)
Create an OPC compliant part name by resolving it using a base part.
|
static PackagePartName |
PackagingURIHelper.createPartName(java.net.URI partUri)
Create an OPC compliant part name by throwing an exception if the URI is
not valid.
|
static PackagePartName |
PackagingURIHelper.createPartName(java.net.URI partName,
PackagePart relativePart)
Create an OPC compliant part name by resolving it using a base part.
|
PackageProperties |
OPCPackage.getPackageProperties()
Retrieves or creates if none exists, core package property part.
|
java.util.ArrayList<PackagePart> |
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 |
PackagePart.getRelatedPart(PackageRelationship rel)
Get the PackagePart that is the target of a relationship.
|
PackageRelationshipCollection |
PackagePart.getRelationships()
Retrieve all the relationships attached to this part.
|
PackageRelationshipCollection |
PackagePart.getRelationshipsByType(java.lang.String relationshipType)
Retrieve all relationships attached to this part which have the specified
type.
|
int |
PackagePartCollection.getUnusedPartIndex(java.lang.String nameTemplate)
Get an unused part index based on the namePattern, which doesn't exist yet
and has the lowest positive index
|
int |
OPCPackage.getUnusedPartIndex(java.lang.String nameTemplate)
Get an unused part index based on the namePattern, which doesn't exist yet
and has the lowest positive index
|
abstract boolean |
PackagePart.load(java.io.InputStream ios)
Load the content of this part.
|
static OPCPackage |
OPCPackage.open(java.io.File file)
Open a package with read/write permission.
|
static OPCPackage |
OPCPackage.open(java.io.File file,
PackageAccess access)
Open a package.
|
static OPCPackage |
OPCPackage.open(java.io.InputStream in)
Open a package.
|
static OPCPackage |
OPCPackage.open(java.lang.String path)
Open a package with read/write permission.
|
static OPCPackage |
OPCPackage.open(java.lang.String path,
PackageAccess access)
Open a package.
|
static OPCPackage |
OPCPackage.open(ZipEntrySource zipEntry)
Open an user provided
ZipEntrySource with read-only permission. |
static OPCPackage |
OPCPackage.openOrCreate(java.io.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(java.lang.String contentType)
Set the content type.
|
void |
PackageProperties.setCreatedProperty(java.lang.String created)
Set the date of creation of the resource.
|
void |
PackageProperties.setLastPrintedProperty(java.lang.String lastPrinted)
Set the date and time of the last printing.
|
void |
PackageProperties.setModifiedProperty(java.lang.String modified)
Set the date on which the resource was changed.
|
boolean |
OPCPackage.validatePackage(OPCPackage pkg)
Validates the package compliance with the OPC specifications.
|
Constructor and Description |
---|
PackagePart(OPCPackage pack,
PackagePartName partName,
ContentType contentType)
Constructor.
|
PackagePart(OPCPackage pack,
PackagePartName partName,
ContentType contentType,
boolean loadRelationships)
Constructor.
|
PackagePart(OPCPackage pack,
PackagePartName partName,
java.lang.String contentType)
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,
java.lang.String contentType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TempFilePackagePart.load(java.io.InputStream is) |
boolean |
EncryptedTempFilePackagePart.load(java.io.InputStream is) |
boolean |
MemoryPackagePart.load(java.io.InputStream is) |
void |
PackagePropertiesPart.setCreatedProperty(java.lang.String created)
Set the created date.
|
void |
PackagePropertiesPart.setLastPrintedProperty(java.lang.String lastPrinted)
Set last printed date.
|
void |
PackagePropertiesPart.setModifiedProperty(java.lang.String modified)
Set last modification date.
|
PackagePart |
PartUnmarshaller.unmarshall(UnmarshallContext context,
java.io.InputStream in)
Save the content of the package in the stream
|
Constructor and Description |
---|
ContentType(java.lang.String contentType)
Constructor.
|
ContentTypeManager(java.io.InputStream in,
OPCPackage pkg)
Constructor.
|
EncryptedTempFilePackagePart(OPCPackage pack,
PackagePartName partName,
java.lang.String contentType)
Constructor.
|
EncryptedTempFilePackagePart(OPCPackage pack,
PackagePartName partName,
java.lang.String contentType,
boolean loadRelationships)
Constructor.
|
MemoryPackagePart(OPCPackage pack,
PackagePartName partName,
java.lang.String contentType)
Constructor.
|
MemoryPackagePart(OPCPackage pack,
PackagePartName partName,
java.lang.String contentType,
boolean loadRelationships)
Constructor.
|
PackagePropertiesPart(OPCPackage pack,
PackagePartName partName)
Constructor.
|
TempFilePackagePart(OPCPackage pack,
PackagePartName partName,
java.lang.String contentType)
Constructor.
|
TempFilePackagePart(OPCPackage pack,
PackagePartName partName,
java.lang.String contentType,
boolean loadRelationships)
Constructor.
|
ZipContentTypeManager(java.io.InputStream in,
OPCPackage pkg)
Delegate constructor to the super constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
PackagePropertiesUnmarshaller.checkElementForOPCCompliance(org.w3c.dom.Element el)
Check the element for the following OPC compliance rules:
|
PackagePart |
PackagePropertiesUnmarshaller.unmarshall(UnmarshallContext context,
java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
SignatureLine.AddPictureData.addPictureData(byte[] imageData,
PictureType pictureType)
Add picture data to the document
|
Modifier and Type | Method and Description |
---|---|
XSSFWorkbook |
XDDFChart.getWorkbook() |
void |
XDDFChart.saveWorkbook(XSSFWorkbook workbook)
this method write the XSSFWorkbook object data into embedded excel file
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
XSSFReader.getSharedStringsData()
Returns an InputStream to read the contents of the
shared strings table.
|
SharedStrings |
XSSFReader.getSharedStringsTable()
Opens up the Shared Strings Table, parses it, and
returns a handy object for working with
shared strings.
|
java.io.InputStream |
XSSFReader.getSheet(java.lang.String relId)
Returns an InputStream to read the contents of the
specified Sheet.
|
java.util.Iterator<java.io.InputStream> |
XSSFReader.getSheetsData()
Returns an Iterator which will let you get at all the
different Sheets in turn.
|
java.util.Iterator<java.io.InputStream> |
XSSFBReader.getSheetsData()
Returns an Iterator which will let you get at all the
different Sheets in turn.
|
java.io.InputStream |
XSSFReader.getStylesData()
Returns an InputStream to read the contents of the
styles table.
|
StylesTable |
XSSFReader.getStylesTable()
Opens up the Styles Table, parses it, and
returns a handy object for working with cell styles
|
java.io.InputStream |
XSSFReader.getThemesData()
Returns an InputStream to read the contents of the
themes table.
|
java.io.InputStream |
XSSFReader.getWorkbookData()
Returns an InputStream to read the contents of the
main Workbook, which contains key overall data for
the file, including sheet definitions.
|
Modifier and Type | Method and Description |
---|---|
void |
XSSFWorkbook.setVBAProject(XSSFWorkbook macroWorkbook)
Adds a vbaProject.bin file taken from another, given workbook to this one.
|
Constructor and Description |
---|
XSSFWorkbook(java.io.File file)
Constructs a XSSFWorkbook object from a given file.
|
Modifier and Type | Method and Description |
---|---|
org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTInline |
XWPFRun.addChart(java.lang.String chartRelId)
this method add chart template into document
|
XWPFPicture |
XWPFRun.addPicture(java.io.InputStream pictureData,
int pictureType,
java.lang.String filename,
int width,
int height)
Adds a picture to the run.
|
XWPFPicture |
XWPFRun.addPicture(java.io.InputStream pictureData,
PictureType pictureType,
java.lang.String filename,
int width,
int height)
Adds a picture to the run.
|
java.lang.String |
XWPFDocument.addPictureData(byte[] pictureData,
int format)
Adds a picture to the document.
|
java.lang.String |
XWPFHeaderFooter.addPictureData(byte[] pictureData,
int format)
Adds a picture to the document.
|
java.lang.String |
XWPFComments.addPictureData(byte[] pictureData,
int format)
Adds a picture to the comments.
|
java.lang.String |
XWPFDocument.addPictureData(byte[] pictureData,
PictureType pictureType)
Adds a picture to the document.
|
java.lang.String |
XWPFHeaderFooter.addPictureData(byte[] pictureData,
PictureType pictureType)
Adds a picture to the document.
|
java.lang.String |
XWPFComments.addPictureData(byte[] pictureData,
PictureType pictureType)
Adds a picture to the comments.
|
java.lang.String |
XWPFDocument.addPictureData(java.io.InputStream is,
int format)
Adds a picture to the document.
|
java.lang.String |
XWPFHeaderFooter.addPictureData(java.io.InputStream is,
int format)
Adds a picture to the document.
|
java.lang.String |
XWPFComments.addPictureData(java.io.InputStream is,
int format)
Adds a picture to the comments.
|
java.lang.String |
XWPFDocument.addPictureData(java.io.InputStream is,
PictureType pictureType)
Adds a picture to the document.
|
java.lang.String |
XWPFHeaderFooter.addPictureData(java.io.InputStream is,
PictureType pictureType)
Adds a picture to the document.
|
java.lang.String |
XWPFComments.addPictureData(java.io.InputStream is,
PictureType pictureType)
Adds a picture to the comments.
|
protected void |
XWPFChart.attach(java.lang.String chartRelId,
XWPFRun run)
Attach this chart known by its relation id to the given text run.
|
XWPFChart |
XWPFDocument.createChart()
This method is used to create template for chart XML
no need to read MS-Word file and modify charts
|
XWPFChart |
XWPFDocument.createChart(int width,
int height)
This method is used to create template for chart XML
no need to read MS-Word file and modify charts
|
XWPFChart |
XWPFDocument.createChart(XWPFRun run,
int width,
int height) |
int |
XWPFDocument.getNextPicNameNumber(int format)
get the next free ImageNumber
|
int |
XWPFDocument.getNextPicNameNumber(PictureType pictureType)
get the next free ImageNumber
|
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.