Methods Summary |
---|
public java.lang.String | getApplicationName()Returns the application name (or null ).
return (String) getProperty(PropertyIDMap.PID_APPNAME);
|
public java.lang.String | getAuthor()Returns the author (or null ).
return (String) getProperty(PropertyIDMap.PID_AUTHOR);
|
public int | getCharCount()Returns the character count or 0 if the {@link SummaryInformation}
does not contain a char count.
return getPropertyIntValue(PropertyIDMap.PID_CHARCOUNT);
|
public java.lang.String | getComments()Returns the comments (or null ).
return (String) getProperty(PropertyIDMap.PID_COMMENTS);
|
public java.util.Date | getCreateDateTime()Returns the creation time (or null ).
return (Date) getProperty(PropertyIDMap.PID_CREATE_DTM);
|
public long | getEditTime()Returns the total time spent in editing the document (or
0 ).
final Date d = (Date) getProperty(PropertyIDMap.PID_EDITTIME);
if (d == null)
return 0;
else
return Util.dateToFileTime(d);
|
public java.lang.String | getKeywords()Returns the keywords (or null ).
return (String) getProperty(PropertyIDMap.PID_KEYWORDS);
|
public java.lang.String | getLastAuthor()Returns the last author (or null ).
return (String) getProperty(PropertyIDMap.PID_LASTAUTHOR);
|
public java.util.Date | getLastPrinted()Returns the last printed time (or null ).
return (Date) getProperty(PropertyIDMap.PID_LASTPRINTED);
|
public java.util.Date | getLastSaveDateTime()Returns the last save time (or null ).
return (Date) getProperty(PropertyIDMap.PID_LASTSAVE_DTM);
|
public int | getPageCount()Returns the page count or 0 if the {@link SummaryInformation} does
not contain a page count.
return getPropertyIntValue(PropertyIDMap.PID_PAGECOUNT);
|
public java.lang.String | getRevNumber()Returns the revision number (or null ).
return (String) getProperty(PropertyIDMap.PID_REVNUMBER);
|
public int | getSecurity()Returns a security code which is one of the following values:
0 if the {@link SummaryInformation} does not contain a
security field or if there is no security on the document. Use
{@link 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
return getPropertyIntValue(PropertyIDMap.PID_SECURITY);
|
public java.lang.String | getSubject()Returns the subject (or null ).
return (String) getProperty(PropertyIDMap.PID_SUBJECT);
|
public java.lang.String | getTemplate()Returns the template (or null ).
return (String) getProperty(PropertyIDMap.PID_TEMPLATE);
|
public byte[] | getThumbnail()Returns the thumbnail (or null ) when this
method is implemented. Please note that the return type is likely to
change!
Hint to developers: Drew Varner <Drew.Varner
-at- sc.edu> said that this is an image in WMF or Clipboard (BMP?)
format. However, we won't do any conversion into any image type but
instead just return a byte array.
return (byte[]) getProperty(PropertyIDMap.PID_THUMBNAIL);
|
public java.lang.String | getTitle()Returns the title (or null ).
return (String) getProperty(PropertyIDMap.PID_TITLE);
|
public int | getWordCount()Returns the word count or 0 if the {@link SummaryInformation} does
not contain a word count.
return getPropertyIntValue(PropertyIDMap.PID_WORDCOUNT);
|
public void | removeApplicationName()Removes the application name.
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_APPNAME);
|
public void | removeAuthor()Removes the author.
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_AUTHOR);
|
public void | removeCharCount()Removes the character count.
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_CHARCOUNT);
|
public void | removeComments()Removes the comments.
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_COMMENTS);
|
public void | removeCreateDateTime()Removes the creation time.
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_CREATE_DTM);
|
public void | removeEditTime()Remove the total time spent in editing the document.
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_EDITTIME);
|
public void | removeKeywords()Removes the keywords.
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_KEYWORDS);
|
public void | removeLastAuthor()Removes the last author.
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_LASTAUTHOR);
|
public void | removeLastPrinted()Removes the lastPrinted.
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_LASTPRINTED);
|
public void | removeLastSaveDateTime()Remove the total time spent in editing the document.
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_LASTSAVE_DTM);
|
public void | removePageCount()Removes the page count.
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_PAGECOUNT);
|
public void | removeRevNumber()Removes the revision number.
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_REVNUMBER);
|
public void | removeSecurity()Removes the security code.
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_SECURITY);
|
public void | removeSubject()Removes the subject.
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_SUBJECT);
|
public void | removeTemplate()Removes the template.
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_TEMPLATE);
|
public void | removeThumbnail()Removes the thumbnail.
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_THUMBNAIL);
|
public void | removeTitle()Removes the title.
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_TITLE);
|
public void | removeWordCount()Removes the word count.
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_WORDCOUNT);
|
public void | setApplicationName(java.lang.String applicationName)Sets the application name.
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_APPNAME, applicationName);
|
public void | setAuthor(java.lang.String author)Sets the author.
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_AUTHOR, author);
|
public void | setCharCount(int charCount)Sets the character count.
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_CHARCOUNT, charCount);
|
public void | setComments(java.lang.String comments)Sets the comments.
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_COMMENTS, comments);
|
public void | setCreateDateTime(java.util.Date createDateTime)Sets the creation time.
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_CREATE_DTM, Variant.VT_FILETIME,
createDateTime);
|
public void | setEditTime(long time)Sets the total time spent in editing the document.
final Date d = Util.filetimeToDate(time);
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_EDITTIME, Variant.VT_FILETIME, d);
|
public void | setKeywords(java.lang.String keywords)Sets the keywords.
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_KEYWORDS, keywords);
|
public void | setLastAuthor(java.lang.String lastAuthor)Sets the last author.
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_LASTAUTHOR, lastAuthor);
|
public void | setLastPrinted(java.util.Date lastPrinted)Sets the lastPrinted.
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_LASTPRINTED, Variant.VT_FILETIME,
lastPrinted);
|
public void | setLastSaveDateTime(java.util.Date time)Sets the total time spent in editing the document.
final MutableSection s = (MutableSection) getFirstSection();
s
.setProperty(PropertyIDMap.PID_LASTSAVE_DTM,
Variant.VT_FILETIME, time);
|
public void | setPageCount(int pageCount)Sets the page count.
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_PAGECOUNT, pageCount);
|
public void | setRevNumber(java.lang.String revNumber)Sets the revision number.
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_REVNUMBER, revNumber);
|
public void | setSecurity(int security)Sets the security code.
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_SECURITY, security);
|
public void | setSubject(java.lang.String subject)Sets the subject.
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_SUBJECT, subject);
|
public void | setTemplate(java.lang.String template)Sets the template.
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_TEMPLATE, template);
|
public void | setThumbnail(byte[] thumbnail)Sets the thumbnail.
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_THUMBNAIL, /* FIXME: */
Variant.VT_LPSTR, thumbnail);
|
public void | setTitle(java.lang.String title)Sets the title.
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_TITLE, title);
|
public void | setWordCount(int wordCount)Sets the word count.
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_WORDCOUNT, wordCount);
|