You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



All Packages  This Package  Class Hierarchy  Class Search  Index

Class grendel.mime.html.TextHTMLConverter

java.lang.Object
   |
   +----grendel.mime.html.TextHTMLConverter

This class knows how to convert plain-text to HTML.


class  TextHTMLConverter
     extends java.lang.Object
{
          // Constructors 1
     public TextHTMLConverter();

          // Methods 6
     private static final boolean isURLProtocol(StringBuffer, int, int);
     public static void main(String[]);
     private static final boolean matchSubstring(StringBuffer, int, int, String);
     public static void quoteForHTML(StringBuffer, boolean, boolean);
     private static final boolean sendmailFuckage(StringBuffer, int, int);
     static void test(String);
}



Constructors


TextHTMLConverter

   public TextHTMLConverter() 

Default constructor




Methods


quoteForHTML

   public static void quoteForHTML(StringBuffer text, 
                                   boolean urls_too, 
                                   boolean citations_too) 

Given a StringBuffer of text, alters that text in place to be displayable as HTML: the <, >, and & characters are converted to entities.



isURLProtocol

   private static final boolean isURLProtocol(StringBuffer buf, 
                                              int start, 
                                              int length) 


matchSubstring

   private static final boolean matchSubstring(StringBuffer buf, 
                                               int start, 
                                               int length, 
                                               String string) 


sendmailFuckage

   private static final boolean sendmailFuckage(StringBuffer buf, 
                                                int start, 
                                                int length) 


test

   static void test(String x) 


main

   public static void main(String[] args) 


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4