public class DocumentTableSet
extends java.lang.Object
For documents of Spreadsheet file formats, a DocumentTableSet instance represents a set of sheets. For documents of other file formats, a DocumentTableSet instance represents a set of tables.
To access data of the corresponding tables while assembling a document, pass an instance of this class as a data source to one of DocumentAssembler. assembleDocument overloads.
In template documents, a DocumentTableSet instance should be treated in the same way as if it was a DataSet instance. See template syntax reference for more information.
| Constructor and Description |
|---|
DocumentTableSet(java.io.InputStream documentStream)
Creates a new instance of this class loading all tables from a document using default
DocumentTableOptions. |
DocumentTableSet(java.io.InputStream documentStream,
IDocumentTableLoadHandler loadHandler)
Creates a new instance of this class.
|
DocumentTableSet(java.lang.String documentPath)
Creates a new instance of this class loading all tables from a document using default
DocumentTableOptions. |
DocumentTableSet(java.lang.String documentPath,
IDocumentTableLoadHandler loadHandler)
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
DocumentTableRelationCollection |
getRelations()
Gets the collection of parent-child relations defined for document tables of this set.
|
DocumentTableCollection |
getTables()
Gets the collection of
DocumentTable objects representing tables of this set. |
public DocumentTableSet(java.lang.String documentPath)
throws java.lang.Exception
DocumentTableOptions.documentPath - The path to a document containing tables to be accessed.java.lang.Exceptionpublic DocumentTableSet(java.lang.String documentPath,
IDocumentTableLoadHandler loadHandler)
throws java.lang.Exception
documentPath - The path to a document containing tables to be accessed.loadHandler - An IDocumentTableLoadHandler implementation controlling how document tables are loaded.java.lang.Exceptionpublic DocumentTableSet(java.io.InputStream documentStream)
throws java.lang.Exception
DocumentTableOptions.documentStream - The stream containing a document with tables to be accessed.java.lang.Exceptionpublic DocumentTableSet(java.io.InputStream documentStream,
IDocumentTableLoadHandler loadHandler)
throws java.lang.Exception
documentStream - The stream containing a document with tables to be accessed.loadHandler - An IDocumentTableLoadHandler implementation controlling how document tables are loaded.java.lang.Exceptionpublic DocumentTableCollection getTables()
DocumentTable objects representing tables of this set.DocumentTable objects representing tables of this set.public DocumentTableRelationCollection getRelations()
See Also:
GroupDocs.Assembly for Java Documentation - the home page for the GroupDocs.Assembly for Java Product Documentation.
GroupDocs.Assembly for Java Support Forum - our preferred method of support.
© 2001-2023 Aspose Pty Ltd. All rights reserved.