public class StyledDocument extends Object
This class provides a functional document model that captures text content from the NDT tool and logs it to the I2P logging system. Unlike most components in this package, StyledDocument provides actual functionality by storing text content and forwarding it to the I2P logger.
This allows NDT test results and formatted text to be captured and logged even in headless environments without requiring an actual graphical display. The document supports text insertion and length tracking but provides no actual styling or rendering functionality.
| Constructor and Description |
|---|
StyledDocument() |
| Modifier and Type | Method and Description |
|---|---|
int |
getLength() |
void |
insertString(int offset,
String s,
Object x) |
public int getLength()
public void insertString(int offset,
String s,
Object x)
throws BadLocationException
BadLocationException