Modifier and Type | Method and Description |
---|---|
protected 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 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
|
Modifier and Type | Method and Description |
---|---|
static POITextExtractor |
ExtractorFactory.createExtractor(DirectoryNode poifsDir) |
static POITextExtractor |
ExtractorFactory.createExtractor(DirectoryNode poifsDir,
POIFSFileSystem fs)
Deprecated.
Use
ExtractorFactory.createExtractor(DirectoryNode) instead |
static POITextExtractor |
ExtractorFactory.createExtractor(File f) |
static POITextExtractor |
ExtractorFactory.createExtractor(InputStream inp) |
static POIOLE2TextExtractor |
ExtractorFactory.createExtractor(POIFSFileSystem fs) |
static POITextExtractor[] |
ExtractorFactory.getEmbededDocsTextExtractors(POIOLE2TextExtractor ext)
Returns an array of text extractors, one for each of
the embeded documents in the file (if there are any).
|
Modifier and Type | Method and Description |
---|---|
static 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.
|
PackageProperties |
OPCPackage.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 PackagePart[] |
ZipPackage.getPartsImpl()
Retrieves the parts from this package.
|
protected abstract PackagePart[] |
OPCPackage.getPartsImpl()
Get all parts link to the package.
|
PackagePart |
PackagePart.getRelatedPart(PackageRelationship rel)
Get the PackagePart that is the target of a relationship.
|
PackageRelationshipCollection |
RelationshipSource.getRelationships()
Retrieve all the relationships attached to this.
|
PackageRelationshipCollection |
PackagePart.getRelationships()
Retrieve all the relationships attached to this part.
|
PackageRelationshipCollection |
RelationshipSource.getRelationshipsByType(String relationshipType)
Retrieve all relationships attached to this part which have the specified
type.
|
PackageRelationshipCollection |
PackagePart.getRelationshipsByType(String relationshipType)
Retrieve all relationships attached to this part which have the specified
type.
|
abstract boolean |
PackagePart.load(InputStream ios)
Load the content of this part.
|
static OPCPackage |
OPCPackage.open(File file)
Open a package with read/write permission.
|
static OPCPackage |
OPCPackage.open(File file,
PackageAccess access)
Open a package.
|
static Package |
Package.open(InputStream in)
Deprecated.
|
static OPCPackage |
OPCPackage.open(InputStream in)
Open a package.
|
static Package |
Package.open(String path)
Deprecated.
|
static OPCPackage |
OPCPackage.open(String path)
Open a package with read/write permission.
|
static Package |
Package.open(String path,
PackageAccess access)
Deprecated.
|
static OPCPackage |
OPCPackage.open(String path,
PackageAccess access)
Open a package.
|
static Package |
Package.openOrCreate(File file)
Deprecated.
|
static OPCPackage |
OPCPackage.openOrCreate(File file)
Opens a package if it exists, else it creates one.
|
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.
|
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,
String contentType)
Constructor.
|
PackageRelationshipCollection(OPCPackage container)
Constructor.
|
PackageRelationshipCollection(OPCPackage container,
PackagePart part)
Constructor.
|
PackageRelationshipCollection(PackagePart part)
Constructor.
|
ZipPackagePart(OPCPackage container,
PackagePartName partName,
String contentType)
Constructor.
|
ZipPackagePart(OPCPackage container,
ZipEntry zipEntry,
PackagePartName partName,
String contentType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
MemoryPackagePart.load(InputStream ios) |
PackagePart |
PartUnmarshaller.unmarshall(UnmarshallContext context,
InputStream in)
Save the content of the package in the stream
|
Constructor and Description |
---|
ContentType(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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
DigitalCertificatePart.load(InputStream ios) |
Constructor and Description |
---|
DigitalCertificatePart() |
Modifier and Type | Method and Description |
---|---|
void |
PackagePropertiesUnmarshaller.checkElementForOPCCompliance(org.dom4j.Element el)
Check the element for the following OPC compliance rules:
|
PackagePart |
PackagePropertiesUnmarshaller.unmarshall(UnmarshallContext context,
InputStream in) |
Modifier and Type | Method and Description |
---|---|
boolean |
PackageDigitalSignature.load(InputStream ios) |
Constructor and Description |
---|
PackageDigitalSignature() |
Modifier and Type | Method and Description |
---|---|
static Workbook |
WorkbookFactory.create(File file)
Creates the appropriate HSSFWorkbook / XSSFWorkbook from
the given File, which must exist and be readable.
|
static Workbook |
WorkbookFactory.create(InputStream inp)
Creates the appropriate HSSFWorkbook / XSSFWorkbook from
the given InputStream.
|
Modifier and Type | Method and Description |
---|---|
PackagePart |
XSSFReader.getExternalLink(String relId)
Returns an ExternalLinkPart with the specified relationId.
|
InputStream |
XSSFReader.getSharedStringsData()
Returns an InputStream to read the contents of the
shared strings table.
|
SharedStringsTable |
XSSFReader.getSharedStringsTable()
Opens up the Shared Strings Table, parses it, and
returns a handy object for working with
shared strings.
|
InputStream |
XSSFReader.getSheet(String relId)
Returns an InputStream to read the contents of the
specified Sheet.
|
Iterator<InputStream> |
XSSFReader.getSheetsData()
Returns an Iterator which will let you get at all the
different Sheets in turn.
|
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
|
InputStream |
XSSFReader.getThemesData()
Returns an InputStream to read the contents of the
themes table.
|
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 |
---|---|
InputStream |
XSSFRelation.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
|
Modifier and Type | Method and Description |
---|---|
XWPFPicture |
XWPFRun.addPicture(InputStream pictureData,
int pictureType,
String filename,
int width,
int height)
Adds a picture to the run.
|
String |
XWPFHeaderFooter.addPictureData(byte[] pictureData,
int format)
Adds a picture to the document.
|
String |
XWPFDocument.addPictureData(byte[] pictureData,
int format) |
String |
XWPFHeaderFooter.addPictureData(InputStream is,
int format)
Adds a picture to the document.
|
String |
XWPFDocument.addPictureData(InputStream is,
int format) |
int |
XWPFDocument.getNextPicNameNumber(int format)
get the next free ImageNumber
|
Copyright © 2020. All rights reserved.