Class DocumentProperty

  • All Implemented Interfaces:
    POIFSViewable, Child

    public class DocumentProperty
    extends Property
    Trivial extension of Property for POIFSDocuments
    • Constructor Detail

      • DocumentProperty

        public DocumentProperty​(java.lang.String name,
                                int size)
        Constructor
        Parameters:
        name - POIFSDocument name
        size - POIFSDocument size
    • Method Detail

      • setDocument

        public void setDocument​(POIFSDocument doc)
        set the POIFSDocument
        Parameters:
        doc - the associated POIFSDocument
      • getDocument

        public POIFSDocument getDocument()
        get the POIFSDocument
        Returns:
        the associated document
      • shouldUseSmallBlocks

        public boolean shouldUseSmallBlocks()
        give method more visibility
        Overrides:
        shouldUseSmallBlocks in class Property
        Returns:
        true if this property should use small blocks
      • isDirectory

        public boolean isDirectory()
        Specified by:
        isDirectory in class Property
        Returns:
        true if a directory type Property
      • updateSize

        public void updateSize​(int size)
        Update the size of the property's data