| HEADER | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Различные утилиты для работы с текстовыми данными.
| Method Summary | |
static void | addField(StringBuffer str, String fieldName, String fieldValue, int maxStrLen, String delimiter)Add the field to the specified string if the field value is not empty. |
static void | addField(StringBuffer str, String fieldName, String fieldValue, int maxFieldLen) |
static void | addField(StringBuffer str, String fieldName, String fieldValue) |
static void | addField(StringBuffer str, String fieldName, String fieldValue, String delimiter) |
static String | convertHTML(String html)Convert HTML document to text. |
static String | getField(String entry, String field, char delimiter)Returns specified field from the specified entry. |
static String | getField(String entry, String field)Returns specified field from the specified entry. |
static String | getSection(String section, String str, int offset)Returns the specified section from the specified string. |
static String | getSection(String section, String str)Returns the specified section from the specified string. |
static String | htmlMakeBold(String text) |
static String | htmlMakeChangeFont(String text, int diff) |
static String | htmlMakeHTML(String text) |
static String | htmlMakeItalic(String text) |
static String | htmlMakeParagraph(String text) |
static String | htmlMakeUnderline(String text) |
static String | insertToString(String str, int offset, String what)Insert the specified string in other string in specified position. |
static int | parseInt(String s, int from)Parse integer from the string. |
static String | valueOf(float value, int decDig)Returns string, that represents float value, with specified number of decimal didits. |
| Method Detail |
public static void addField(StringBuffer str, String fieldName, String fieldValue, int maxStrLen, String delimiter)
public static void addField(StringBuffer str, String fieldName, String fieldValue, int maxFieldLen)
public static void addField(StringBuffer str, String fieldName, String fieldValue)
public static void addField(StringBuffer str, String fieldName, String fieldValue, String delimiter)
public static String convertHTML(String html)
public static String getField(String entry, String field, char delimiter)
If field consists from several lines, they must be a single block, without other fields inside them.
public static String getField(String entry, String field)
If the field consists from several lines space is used as delimiter.
public static String getSection(String section, String str, int offset)
public static String getSection(String section, String str)
public static String htmlMakeBold(String text)
public static String htmlMakeChangeFont(String text, int diff)
public static String htmlMakeHTML(String text)
public static String htmlMakeItalic(String text)
public static String htmlMakeParagraph(String text)
public static String htmlMakeUnderline(String text)
public static String insertToString(String str, int offset, String what)
public static int parseInt(String s, int from)
throws java.lang.NumberFormatException
public static String valueOf(float value, int decDig)
If the value indeed is the integer, than the decimal digits are omitted.
| FOOTER | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||