The Mozilla
Organization
At A Glance
Feedback
Get Involved
Newsgroups
License Terms
Newsbot
Developer Docs
Roadmap
Projects
Ports
Module Owners
Hacking
Get the Source
Build It
Testing
Download
Bugzilla
Bug Writing
Tools
View Source
Tree Status
New Checkins
Submit A Bug
FAQ
Search
Class grendel.mime.html.TextHTMLConverter
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
Copyright © 1998-2000 The Mozilla Organization.
Last modified December 25, 1998.