public class RtfProtectionSetting extends RtfElement
| Modifier and Type | Field and Description |
|---|---|
private static byte[] |
ANNOTPROT
Constant for Annotation/Comment protection controlword
Mutually exclusive
|
private static byte[] |
ENFORCEPROT
Constant for enforceprot controlword
|
private static byte[] |
FORMPROT
Constant for Form protection controlword
Mutually exclusive
|
private static byte[] |
PROTLEVEL
Constant for protlevel controlword
|
private static byte[] |
READONLYRECOMMENDED
Constant for enforceprot controlword.
|
private static byte[] |
READPROT
Constant for read only rotection controlword
Mutually exclusive - exception, can be combined with ANNOTPROT
for backwards compatibility
|
private static byte[] |
REVPROT
Constant for Revision protection controlword
Mutually exclusive
|
document, inHeader, inTableCLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR| Constructor and Description |
|---|
RtfProtectionSetting(RtfDocument doc)
Constructs a
RtfProtectionSetting belonging to a RtfDocument |
| Modifier and Type | Method and Description |
|---|---|
void |
writeContent(java.io.OutputStream result)
Writes the RTF protection control words
|
void |
writeDefinition(java.io.OutputStream result)
Writes the RTF protection control words
|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocumentprivate static final byte[] FORMPROT
private static final byte[] REVPROT
private static final byte[] ANNOTPROT
private static final byte[] READPROT
private static final byte[] PROTLEVEL
private static final byte[] ENFORCEPROT
private static final byte[] READONLYRECOMMENDED
public RtfProtectionSetting(RtfDocument doc)
RtfProtectionSetting belonging to a RtfDocumentdoc - The RtfDocument this RtfProtectionSetting belongs topublic void writeContent(java.io.OutputStream result)
throws java.io.IOException
writeContent in interface RtfBasicElementwriteContent in class RtfElementresult - The OutputStream to write the content tojava.io.IOExceptionpublic void writeDefinition(java.io.OutputStream result)
throws java.io.IOException
java.io.IOException