WebObjects 5.2.3

com.webobjects.directtoweb
Class Services

java.lang.Object
  extended bycom.webobjects.directtoweb.Services

public class Services
extends Object


Constructor Summary
Services()
           
 
Method Summary
static String breakDown(String inputString, int cols)
           
static String capitalize(String s)
           
static NSDictionary dictionaryFromFile(File f)
           
static NSDictionary dictionaryFromPathURL(URL url)
           
static NSArray flatten(NSArray array)
           
static String formKeyForKey(String key)
           
static String htmlify(String s)
           
static String htmlQuotify(String s)
           
static void mergeHashtableIntoHashtable(Hashtable from, Hashtable to)
           
static void mergeVectorIntoVector(Vector list, Vector target)
           
static void mergeVectorIntoVectorWithoutDuplicates(Vector list, Vector target)
           
static Object objectFromPListFile(File f)
           
static Object objectFromPListPathURL(URL url)
           
static String plurify(String s, int howMany)
           
static String replace(String contentsString, String searchString, String replaceString)
           
static String replace(String contentsString, String searchString, String replaceString, int startPosition, int endPosition)
           
static void replaceFileContents(File f, String s)
           
static Vector vectorFromImmutableVector(NSArray iv)
           
static void writeDictionaryToFile(NSDictionary d, File f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Services

public Services()
Method Detail

breakDown

public static String breakDown(String inputString,
                               int cols)

capitalize

public static String capitalize(String s)

dictionaryFromFile

public static NSDictionary dictionaryFromFile(File f)
                                       throws IOException
Throws:
IOException

dictionaryFromPathURL

public static NSDictionary dictionaryFromPathURL(URL url)
                                          throws IOException
Throws:
IOException

flatten

public static NSArray flatten(NSArray array)

formKeyForKey

public static String formKeyForKey(String key)

htmlQuotify

public static String htmlQuotify(String s)

htmlify

public static String htmlify(String s)

mergeHashtableIntoHashtable

public static void mergeHashtableIntoHashtable(Hashtable from,
                                               Hashtable to)

mergeVectorIntoVector

public static void mergeVectorIntoVector(Vector list,
                                         Vector target)

mergeVectorIntoVectorWithoutDuplicates

public static void mergeVectorIntoVectorWithoutDuplicates(Vector list,
                                                          Vector target)

objectFromPListFile

public static Object objectFromPListFile(File f)
                                  throws IOException
Throws:
IOException

objectFromPListPathURL

public static Object objectFromPListPathURL(URL url)
                                     throws IOException
Throws:
IOException

plurify

public static String plurify(String s,
                             int howMany)

replace

public static String replace(String contentsString,
                             String searchString,
                             String replaceString,
                             int startPosition,
                             int endPosition)

replace

public static String replace(String contentsString,
                             String searchString,
                             String replaceString)

replaceFileContents

public static void replaceFileContents(File f,
                                       String s)
                                throws IOException
Throws:
IOException

vectorFromImmutableVector

public static Vector vectorFromImmutableVector(NSArray iv)

writeDictionaryToFile

public static void writeDictionaryToFile(NSDictionary d,
                                         File f)
                                  throws IOException
Throws:
IOException

Last updated Thu Oct 21 15:04:16 PDT 2004.

Copyright © 2004 Apple Computer, Inc.