    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class Acme.Util

    java.lang.Object
       |
       +----Acme.Util

public class Util
extends Object

##

Util()

##

absoluteUrlStr(String, URL)
arraycontains(Object[], Object)
baseUrlStr(String)
brokenImage(Graphics, Component)
charCount(String, char)
countOnes(byte)
countOnes(int)
countOnes(long)
doubleToString(double)
drawSpline(Graphics, int, int, int, int, int, int)
drawThickLine(Graphics, int, int, int, int, int)
even(long)
fixDirUrlStr(String)
fixedRead(InputStream, byte[], int, int)
flattenStrarr(String[])
handleBgcolor(Applet)
lsDateStr(Date)
odd(long)
parseColor(String)
plainUrl(String)
plainUrl(URL, String)
pow(long, long)
sameLength(String, String)
splitStr(String)
strCSpan(String, String)
strSpan(String, String)
system(String)
urlStrIsAbsolute(String)
urlStrIsDir(String)

##

Util

      public Util()

##

lsDateStr

      public static String lsDateStr(Date date)

strSpan

      public static int strSpan(String str,
                                String charSet)

strCSpan

      public static int strCSpan(String str,
                                 String charSet)

sameLength

      public static int sameLength(String str1,
                                   String str2)

charCount

      public static int charCount(String str,
                                  char c)

splitStr

      public static String[] splitStr(String str)

flattenStrarr

      public static String flattenStrarr(String strs[])

pow

      public static long pow(long a,
                             long b) throws ArithmeticException

doubleToString

      public static String doubleToString(double d)

brokenImage

      public static void brokenImage(Graphics graphics,
                                     Component comp)

parseColor

      public static Color parseColor(String str)

handleBgcolor

      public static void handleBgcolor(Applet applet)

even

      public static boolean even(long n)

odd

      public static boolean odd(long n)

countOnes

      public static int countOnes(byte n)

countOnes

      public static int countOnes(int n)

countOnes

      public static int countOnes(long n)

fixedRead

      public static int fixedRead(InputStream in,
                                  byte b[],
                                  int off,
                                  int len) throws IOException

drawSpline

      public static void drawSpline(Graphics graphics,
                                    int x1,
                                    int y1,
                                    int x2,
                                    int y2,
                                    int x3,
                                    int y3)

drawThickLine

      public static void drawThickLine(Graphics graphics,
                                       int x1,
                                       int y1,
                                       int x2,
                                       int y2,
                                       int linewidth)

plainUrl

      public static URL plainUrl(URL context,
                                 String urlStr) throws MalformedURLException

plainUrl

      public static URL plainUrl(String urlStr) throws MalformedURLException

baseUrlStr

      public static String baseUrlStr(String urlStr)

fixDirUrlStr

      public static String fixDirUrlStr(String urlStr)

urlStrIsDir

      public static boolean urlStrIsDir(String urlStr)

urlStrIsAbsolute

      public static boolean urlStrIsAbsolute(String urlStr)

absoluteUrlStr

      public static String absoluteUrlStr(String urlStr,
                                          URL contextUrl) throws MalformedURLException

arraycontains

      public static boolean arraycontains(Object array[],
                                          Object element)

system

      public static int system(String cmd)

    All Packages  Class Hierarchy  This Package  Previous  Next  Index