com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class DbContainer

  • All Implemented Interfaces:
    IContainer


    public class DbContainer
    extends Object
    implements IContainer

    Provides a container for database.

    • Constructor Detail

      • DbContainer

        public DbContainer(Connection connection)

        Initializes a new instance of the DbContainer class.

        Parameters:
        connection - An instance of database connection.
    • Method Detail

      • getEntities

        public List<Container.Entity> getEntities()

        Gets a collection of container's entities.

        Specified by:
        getEntities in interface IContainer
        Returns:
        A collection of container's entities. Each data table is represented by the entity.
      • dispose

        public void dispose()

        Releases the unmanaged resources used by the extractor.

      • getTableReader

        public DbTableReader getTableReader(String tableName)

        Creates a table reader for the database table.

        Parameters:
        tableName - A name of the database table.
        Returns:
        An instance of DbTableReader class.
      • openEntityStream

        public InputStream openEntityStream(Container.Entity entity)

        Opens a stream with the content of the container's entity.

        Specified by:
        openEntityStream in interface IContainer
        Parameters:
        entity - A container's entity.


        This method converts data table to CSV document and returns it as Stream.

        Returns:
        A stream with the content of the container's entity.