org.jboss.highlight.renderer
Class FORenderer

java.lang.Object
  extended by org.jboss.highlight.renderer.FORenderer

public class FORenderer
extends Object

Parses the contents of programlisting elements to allow FO syntax highlighting.

Since:
1.0
Version:
$Revision$
Author:
Geert Bevin (gbevin[remove] at uwyn dot com), Mark Newton (mark.newton@jboss.org)

Constructor Summary
FORenderer()
           
 
Method Summary
protected  String getCssClass(String role, int style)
           
static int getNoOfTokens(int caller)
           
static String getStyle(int caller, int index)
           
static String getToken(int caller, int index)
           
static boolean isParsable(String role)
           
 int parseText(String role, String text, String encoding)
          Parse the text into tokens and store in a list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FORenderer

public FORenderer()
Method Detail

getNoOfTokens

public static int getNoOfTokens(int caller)

getStyle

public static String getStyle(int caller,
                              int index)

getToken

public static String getToken(int caller,
                              int index)

isParsable

public static boolean isParsable(String role)

parseText

public int parseText(String role,
                     String text,
                     String encoding)
              throws IOException
Parse the text into tokens and store in a list. Also store a corresponding list of styles for each token.

Throws:
IOException

getCssClass

protected String getCssClass(String role,
                             int style)


Copyright © 2012 JBoss.org. All Rights Reserved.