- All Known Subinterfaces:
DocxPart
- All Known Implementing Classes:
PptxPart
public interface DocxDocument
The DocxDocument interface represents a WordprocessingML-based document,
providing methods to access the document and stream its parts by type.
-
Method Summary
Modifier and TypeMethodDescriptionorg.docx4j.openpackaging.packages.WordprocessingMLPackage
document()
Retrieves the WordprocessingMLPackage document associated with this instance.streamParts
(String type) Streams the parts of the document that match the specified type.
-
Method Details
-
document
org.docx4j.openpackaging.packages.WordprocessingMLPackage document()Retrieves the WordprocessingMLPackage document associated with this instance. The returned document provides access to its content and metadata.- Returns:
- the WordprocessingMLPackage document
-
streamParts
Streams the parts of the document that match the specified type.- Parameters:
type
- the type of parts to stream, typically used to filter specific types of document parts- Returns:
- a stream of
DocxPart
objects that match the specified type
-