WebObjects 5.4.2

com.webobjects.directtoweb
Class Services

java.lang.Object
  extended by com.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

objectFromPListFile

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

objectFromPListPathURL

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

dictionaryFromFile

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

dictionaryFromPathURL

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

writeDictionaryToFile

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

replaceFileContents

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

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)

htmlify

public static String htmlify(String s)

htmlQuotify

public static String htmlQuotify(String s)

formKeyForKey

public static String formKeyForKey(String key)

vectorFromImmutableVector

public static Vector vectorFromImmutableVector(NSArray iv)

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)

capitalize

public static String capitalize(String s)

breakDown

public static String breakDown(String inputString,
                               int cols)

plurify

public static String plurify(String s,
                             int howMany)

flatten

public static NSArray flatten(NSArray array)

Last updated June 2008

Copyright © 2000-2008 Apple Inc.