Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.text
Interface IState  view IState download IState.java

All Known Implementing Classes:
AttrState, ElementState, NormalState

interface IState

A simple parser to parse html like attributed strings. Output is the un-attributed text returned by getText() and a List of TextAttr returned by getAttrs(). Attributes for line format eg. hr,left,right,center,alt are returned by getAlign(). Current supported character attributes: <b></b> Bold <font [color=0xhhhhhh|name] [size=float]></font> Font color and size. <color</color>=0xhhhhhh|name] Shorthand for font color. <size</size>=float Shorthand for font size. Line attributes apply to and only to the attributed line: <hr> Horizontal ruler (before line if occurs at start of line, after line if occurs at end of line). <left><right><center> Horizontal text alignment. <alt> Alternate text that can be hidden by Node Attribute 'exclude>0'.


Method Summary
 IState consume(java.util.StringTokenizer toker)
           
 

Method Detail

consume

public IState consume(java.util.StringTokenizer toker)