@Deprecated public class HtmlUtilities extends Object
| Modifier and Type | Field and Description | 
|---|---|
static float |  
           DEFAULT_FONT_SIZE 
             Deprecated.  
              
            
              a default value for font-size 
               |  
          
static int[] |  
           FONTSIZES 
             Deprecated.  
              
            
              A series of predefined font sizes. 
               |  
          
| Constructor and Description | 
|---|
HtmlUtilities() 
             Deprecated.  
                |  
          
| Modifier and Type | Method and Description | 
|---|---|
static int |  
           alignmentValue(String alignment) 
             Deprecated.  
              
            
              Translates a String value to an alignment value. 
               |  
          
static BaseColor |  
           decodeColor(String s) 
             Deprecated.  
              
            
              Converts a   BaseColor into a HTML representation of this  BaseColor. 
             |  
          
static String |  
           eliminateWhiteSpace(String content) 
             Deprecated.  
              
            
              Helper class that reduces the white space in a String 
               |  
          
static int |  
           getIndexedFontSize(String value, String previous) 
             Deprecated.  
              
            
              Picks a font size from a series of predefined font sizes. 
               |  
          
static Properties |  
           parseAttributes(String string) 
             Deprecated.  
              
            
              This method parses a String with attributes and returns a Properties object. 
               |  
          
static float |  
           parseLength(String string) 
             Deprecated.  
              
            
              Parses a length. 
               |  
          
static float |  
           parseLength(String string, float actualFontSize) 
             Deprecated.  
              
            
              New method contributed by: Lubos Strapko 
               |  
          
static String |  
           removeComment(String string, String startComment, String endComment) 
             Deprecated.  
              
            
              Removes the comments sections of a String. 
               |  
          
public static final float DEFAULT_FONT_SIZE
public static final int[] FONTSIZES
public static float parseLength(String string)
string - a length in the form of an optional + or -, followed by a number and a unit. 
           public static float parseLength(String string, float actualFontSize)
public static BaseColor decodeColor(String s)
BaseColor into a HTML representation of this  BaseColor. 
          s - the BaseColor that has to be converted. 
           public static Properties parseAttributes(String string)
string - a String of this form: 'key1="value1"; key2="value2";... keyN="valueN" ' 
           public static String removeComment(String string, String startComment, String endComment)
string - the original String 
           startComment - the String that marks the start of a Comment section 
           endComment - the String that marks the end of a Comment section. 
           public static String eliminateWhiteSpace(String content)
content - content containing whitespace 
           public static int getIndexedFontSize(String value, String previous)
value - the new value of a font, expressed as an index 
           previous - the previous value of the font size 
           public static int alignmentValue(String alignment)
alignment - a String (one of the ALIGN_ constants of this class) 
           Copyright © 1998–2019. All rights reserved.