|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.text.markup.MarkupParser
public class MarkupParser
This class contains several static methods that can be used to parse markup.
| Constructor Summary | |
|---|---|
private |
MarkupParser()
Creates new MarkupParser |
| Method Summary | |
|---|---|
static java.awt.Color |
decodeColor(java.lang.String color)
Converts a Color into a HTML representation of this Color. |
static java.util.Properties |
parseAttributes(java.lang.String string)
This method parses a String with attributes and returns a Properties object. |
static java.util.Properties |
parseFont(java.lang.String string)
This method parses the value of 'font' attribute and returns a Properties object. |
static float |
parseLength(java.lang.String string)
Parses a length. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private MarkupParser()
| Method Detail |
|---|
public static java.util.Properties parseAttributes(java.lang.String string)
string - a String of this form: 'key1="value1"; key2="value2";... keyN="valueN" '
public static java.util.Properties parseFont(java.lang.String string)
string - a String of this form: 'style1 ... styleN size/leading font1 ... fontN'
public static float parseLength(java.lang.String string)
string - a length in the form of an optional + or -, followed by a number and a unit.
public static java.awt.Color decodeColor(java.lang.String color)
Color into a HTML representation of this Color.
color - the Color that has to be converted.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||