Class SummaryInformation

  • public final class SummaryInformation
    extends PropertySet
    Convenience class representing a Summary Information stream in a Microsoft Office document.
    See Also:
    • Field Detail


        public static final String DEFAULT_STREAM_NAME
        The document name a summary information stream usually has in a POIFS filesystem.
        See Also:
        Constant Field Values
      • FORMAT_ID

        public static final ClassID FORMAT_ID
        The SummaryInformation's section's format ID.
    • Method Detail

      • getPropertySetIDMap

        public PropertyIDMap getPropertySetIDMap()
        Description copied from class: PropertySet
        The id to name mapping of the properties in this set.
        getPropertySetIDMap in class PropertySet
        the id to name mapping of the properties in this set or null if not applicable
      • getTitle

        public String getTitle()
        The title or null
      • setTitle

        public void setTitle​(String title)
        Sets the title.
        title - The title to set.
      • removeTitle

        public void removeTitle()
        Removes the title.
      • getSubject

        public String getSubject()
        Returns the subject (or null).
        The subject or null
      • setSubject

        public void setSubject​(String subject)
        Sets the subject.
        subject - The subject to set.
      • removeSubject

        public void removeSubject()
        Removes the subject.
      • getAuthor

        public String getAuthor()
        Returns the author (or null).
        The author or null
      • setAuthor

        public void setAuthor​(String author)
        Sets the author.
        author - The author to set.
      • removeAuthor

        public void removeAuthor()
        Removes the author.
      • getKeywords

        public String getKeywords()
        Returns the keywords (or null).
        The keywords or null
      • setKeywords

        public void setKeywords​(String keywords)
        Sets the keywords.
        keywords - The keywords to set.
      • removeKeywords

        public void removeKeywords()
        Removes the keywords.
      • getComments

        public String getComments()
        Returns the comments (or null).
        The comments or null
      • setComments

        public void setComments​(String comments)
        Sets the comments.
        comments - The comments to set.
      • removeComments

        public void removeComments()
        Removes the comments.
      • getTemplate

        public String getTemplate()
        Returns the template (or null).
        The template or null
      • setTemplate

        public void setTemplate​(String template)
        Sets the template.
        template - The template to set.
      • removeTemplate

        public void removeTemplate()
        Removes the template.
      • getLastAuthor

        public String getLastAuthor()
        Returns the last author (or null).
        The last author or null
      • setLastAuthor

        public void setLastAuthor​(String lastAuthor)
        Sets the last author.
        lastAuthor - The last author to set.
      • removeLastAuthor

        public void removeLastAuthor()
        Removes the last author.
      • getRevNumber

        public String getRevNumber()
        Returns the revision number (or null).
        The revision number or null
      • setRevNumber

        public void setRevNumber​(String revNumber)
        Sets the revision number.
        revNumber - The revision number to set.
      • removeRevNumber

        public void removeRevNumber()
        Removes the revision number.
      • getEditTime

        public long getEditTime()
        Returns the total time spent in editing the document (or 0).
        The total time spent in editing the document or 0 if the SummaryInformation does not contain this information.
      • setEditTime

        public void setEditTime​(long time)
        Sets the total time spent in editing the document.
        time - The time to set.
      • removeEditTime

        public void removeEditTime()
        Remove the total time spent in editing the document.
      • getLastPrinted

        public Date getLastPrinted()
        Returns the last printed time (or null).
        The last printed time or null
      • setLastPrinted

        public void setLastPrinted​(Date lastPrinted)
        Sets the lastPrinted.
        lastPrinted - The lastPrinted to set.
      • removeLastPrinted

        public void removeLastPrinted()
        Removes the lastPrinted.
      • getCreateDateTime

        public Date getCreateDateTime()
        Returns the creation time (or null).
        The creation time or null
      • setCreateDateTime

        public void setCreateDateTime​(Date createDateTime)
        Sets the creation time.
        createDateTime - The creation time to set.
      • removeCreateDateTime

        public void removeCreateDateTime()
        Removes the creation time.
      • getLastSaveDateTime

        public Date getLastSaveDateTime()
        Returns the last save time (or null).
        The last save time or null
      • setLastSaveDateTime

        public void setLastSaveDateTime​(Date time)
        Sets the total time spent in editing the document.
        time - The time to set.
      • removeLastSaveDateTime

        public void removeLastSaveDateTime()
        Remove the total time spent in editing the document.
      • getPageCount

        public int getPageCount()
        Returns the page count or 0 if the SummaryInformation does not contain a page count.
        The page count or 0 if the SummaryInformation does not contain a page count.
      • setPageCount

        public void setPageCount​(int pageCount)
        Sets the page count.
        pageCount - The page count to set.
      • removePageCount

        public void removePageCount()
        Removes the page count.
      • getWordCount

        public int getWordCount()
        Returns the word count or 0 if the SummaryInformation does not contain a word count.
        The word count or null
      • setWordCount

        public void setWordCount​(int wordCount)
        Sets the word count.
        wordCount - The word count to set.
      • removeWordCount

        public void removeWordCount()
        Removes the word count.
      • getCharCount

        public int getCharCount()
        Returns the character count or 0 if the SummaryInformation does not contain a char count.
        The character count or null
      • setCharCount

        public void setCharCount​(int charCount)
        Sets the character count.
        charCount - The character count to set.
      • removeCharCount

        public void removeCharCount()
        Removes the character count.
      • getThumbnail

        public byte[] getThumbnail()
        Returns the thumbnail (or null) when this method is implemented. Please note that the return type is likely to change!

        To process this data, you may wish to make use of the Thumbnail class. The raw data is generally an image in WMF or Clipboard (BMP?) format

        The thumbnail or null
      • getThumbnailThumbnail

        public Thumbnail getThumbnailThumbnail()
        Returns the thumbnail (or null), processed as an object which is (largely) able to unpack the thumbnail image data.
        The thumbnail or null
      • setThumbnail

        public void setThumbnail​(byte[] thumbnail)
        Sets the thumbnail.
        thumbnail - The thumbnail to set.
      • removeThumbnail

        public void removeThumbnail()
        Removes the thumbnail.
      • getApplicationName

        public String getApplicationName()
        Returns the application name (or null).
        The application name or null
      • setApplicationName

        public void setApplicationName​(String applicationName)
        Sets the application name.
        applicationName - The application name to set.
      • removeApplicationName

        public void removeApplicationName()
        Removes the application name.
      • getSecurity

        public int getSecurity()
        Returns a security code which is one of the following values:
        • 0 if the SummaryInformation does not contain a security field or if there is no security on the document. Use PropertySet.wasNull() to distinguish between the two cases!
        • 1 if the document is password protected
        • 2 if the document is read-only recommended
        • 4 if the document is read-only enforced
        • 8 if the document is locked for annotations
        The security code or null
      • setSecurity

        public void setSecurity​(int security)
        Sets the security code.
        security - The security code to set.
      • removeSecurity

        public void removeSecurity()
        Removes the security code.