org.apache.poi.hwpf.model
public final class StyleSheet extends java.lang.Object implements HDFType
| Modifier and Type | Field and Description |
|---|---|
static int |
NIL_STYLE |
| Constructor and Description |
|---|
StyleSheet(byte[] tableStream,
int offset)
StyleSheet constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
CharacterProperties |
getCharacterStyle(int x) |
ParagraphProperties |
getParagraphStyle(int x) |
StyleDescription |
getStyleDescription(int x)
Gets the StyleDescription at index x.
|
int |
numStyles()
Gets the number of styles in the style sheet.
|
void |
writeTo(HWPFOutputStream out) |
public static final int NIL_STYLE
public StyleSheet(byte[] tableStream,
int offset)
tableStream - A byte array containing a document's raw stylesheet
info. Found by using FileInformationBlock.getFcStshf() and
FileInformationBLock.getLcbStshf()public void writeTo(HWPFOutputStream out) throws java.io.IOException
java.io.IOExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int numStyles()
public StyleDescription getStyleDescription(int x)
x - the index of the desired StyleDescription.public CharacterProperties getCharacterStyle(int x)
public ParagraphProperties getParagraphStyle(int x)
Copyright 2016 The Apache Software Foundation or its licensors, as applicable.