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

Quick Search    Search Deep

org.alicebot.server.core.util
Class Toolkit  view Toolkit download Toolkit.java

java.lang.Object
  extended byorg.alicebot.server.core.util.Toolkit

public class Toolkit
extends java.lang.Object


Field Summary
private static java.lang.String CDATA_END
           
private static java.lang.String CDATA_START
           
private static java.lang.String EMPTY_STRING
           
private static java.lang.String[] EMPTY_STRING_ARRAY
           
private static java.lang.String ENCODING
           
protected static java.lang.String EQUAL_QUOTE
           
private static java.lang.String LINE_SEPARATOR
           
protected static char QUOTE_MARK
           
private static java.lang.String SPACE
           
private static java.lang.String SYSTEM_ENCODING
           
private static java.lang.String TAB
           
private static char TAG_END
           
private static char TAG_START
           
private static java.lang.String UTF8
           
private static java.lang.String WORKING_DIRECTORY
           
private static java.lang.String[][] XML_ESCAPES
           
private static java.lang.String XML_PI_START
           
private static int XML_PI_START_LENGTH
           
private static java.util.HashMap xmlEscapes
           
private static java.util.HashMap xmlProhibited
           
 
Constructor Summary
Toolkit()
           
 
Method Summary
static java.lang.String[] breakLines(java.lang.String s)
           
static void checkOrCreate(java.lang.String s, java.lang.String s1)
           
static java.lang.String convertXMLUnicodeEntities(java.lang.String s)
           
static java.lang.String escapeXMLChars(java.lang.String s)
           
private static java.lang.String filterMultipleConsecutive(java.lang.String s, java.lang.String s1)
           
static java.lang.String filterWhitespace(java.lang.String s)
           
private static java.lang.String filterXML(java.lang.String s)
           
static java.lang.String formatAIML(java.util.LinkedList linkedlist, int i, boolean flag)
           
static java.lang.String formatAIML(java.lang.String s)
           
static java.lang.String getAttributeValue(java.lang.String s, java.lang.String s1)
           
static java.lang.String getDeclaredXMLEncoding(java.io.InputStream inputstream)
           
static java.lang.String getFileContents(java.lang.String s)
           
static java.lang.Class[] getImplementorsOf(java.lang.String s, boolean flag)
           
static java.lang.String[] glob(java.lang.String s, java.lang.String s1)
           
private static java.lang.String removeAll(java.lang.String s, java.lang.String s1)
           
static java.lang.String removeMarkup(java.lang.String s)
           
static java.lang.String tab(int i)
           
static java.lang.String unescapeXMLChars(java.lang.String s)
           
static java.util.ArrayList wordSplit(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_STRING

private static final java.lang.String EMPTY_STRING
See Also:
Constant Field Values

EMPTY_STRING_ARRAY

private static final java.lang.String[] EMPTY_STRING_ARRAY

TAG_START

private static final char TAG_START
See Also:
Constant Field Values

TAG_END

private static final char TAG_END
See Also:
Constant Field Values

SPACE

private static final java.lang.String SPACE
See Also:
Constant Field Values

CDATA_START

private static final java.lang.String CDATA_START
See Also:
Constant Field Values

CDATA_END

private static final java.lang.String CDATA_END
See Also:
Constant Field Values

TAB

private static final java.lang.String TAB

EQUAL_QUOTE

protected static final java.lang.String EQUAL_QUOTE
See Also:
Constant Field Values

QUOTE_MARK

protected static final char QUOTE_MARK
See Also:
Constant Field Values

LINE_SEPARATOR

private static final java.lang.String LINE_SEPARATOR

XML_ESCAPES

private static final java.lang.String[][] XML_ESCAPES

UTF8

private static final java.lang.String UTF8
See Also:
Constant Field Values

XML_PI_START

private static final java.lang.String XML_PI_START
See Also:
Constant Field Values

XML_PI_START_LENGTH

private static final int XML_PI_START_LENGTH

ENCODING

private static final java.lang.String ENCODING
See Also:
Constant Field Values

SYSTEM_ENCODING

private static final java.lang.String SYSTEM_ENCODING

xmlProhibited

private static java.util.HashMap xmlProhibited

xmlEscapes

private static java.util.HashMap xmlEscapes

WORKING_DIRECTORY

private static java.lang.String WORKING_DIRECTORY
Constructor Detail

Toolkit

public Toolkit()
Method Detail

filterWhitespace

public static java.lang.String filterWhitespace(java.lang.String s)
                                         throws java.lang.StringIndexOutOfBoundsException

breakLines

public static java.lang.String[] breakLines(java.lang.String s)

removeMarkup

public static java.lang.String removeMarkup(java.lang.String s)

unescapeXMLChars

public static java.lang.String unescapeXMLChars(java.lang.String s)

escapeXMLChars

public static java.lang.String escapeXMLChars(java.lang.String s)

filterMultipleConsecutive

private static java.lang.String filterMultipleConsecutive(java.lang.String s,
                                                          java.lang.String s1)

removeAll

private static java.lang.String removeAll(java.lang.String s,
                                          java.lang.String s1)

filterXML

private static java.lang.String filterXML(java.lang.String s)

convertXMLUnicodeEntities

public static java.lang.String convertXMLUnicodeEntities(java.lang.String s)

getDeclaredXMLEncoding

public static java.lang.String getDeclaredXMLEncoding(java.io.InputStream inputstream)
                                               throws java.io.IOException

getAttributeValue

public static java.lang.String getAttributeValue(java.lang.String s,
                                                 java.lang.String s1)

formatAIML

public static java.lang.String formatAIML(java.lang.String s)

formatAIML

public static java.lang.String formatAIML(java.util.LinkedList linkedlist,
                                          int i,
                                          boolean flag)

tab

public static java.lang.String tab(int i)

wordSplit

public static java.util.ArrayList wordSplit(java.lang.String s)

getImplementorsOf

public static java.lang.Class[] getImplementorsOf(java.lang.String s,
                                                  boolean flag)

glob

public static java.lang.String[] glob(java.lang.String s,
                                      java.lang.String s1)
                               throws java.io.FileNotFoundException

checkOrCreate

public static void checkOrCreate(java.lang.String s,
                                 java.lang.String s1)

getFileContents

public static java.lang.String getFileContents(java.lang.String s)