Package org.apache.poi.hwpf.model
Class RevisionMarkAuthorTable
- java.lang.Object
-
- org.apache.poi.hwpf.model.RevisionMarkAuthorTable
-
-
Constructor Summary
Constructors Constructor Description RevisionMarkAuthorTable(byte[] tableStream, int offset, int size)Constructor to read the table from the table stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthor(int index)Get an author by its index.List<String>getEntries()Gets the entries.intgetSize()Gets the number of entries.voidwriteTo(ByteArrayOutputStream tableStream)Writes this table to the table stream.
-
-
-
Constructor Detail
-
RevisionMarkAuthorTable
public RevisionMarkAuthorTable(byte[] tableStream, int offset, int size) throws IOExceptionConstructor to read the table from the table stream.- Parameters:
tableStream- the table stream.offset- the offset into the byte array.size- the size of the table in the byte array.- Throws:
IOException
-
-
Method Detail
-
getEntries
public List<String> getEntries()
Gets the entries. The returned list cannot be modified.- Returns:
- the list of entries.
-
getAuthor
public String getAuthor(int index)
Get an author by its index. Returns null if it does not exist.- Returns:
- the revision mark author
-
getSize
public int getSize()
Gets the number of entries.- Returns:
- the number of entries.
-
writeTo
public void writeTo(ByteArrayOutputStream tableStream) throws IOException
Writes this table to the table stream.- Parameters:
tableStream- the table stream to write to.- Throws:
IOException- if an error occurs while writing.
-
-