ariba.ui.aribaweb.util
Class AWUtil

java.lang.Object
  extended by ariba.ui.aribaweb.util.AWBaseObject
      extended by ariba.ui.aribaweb.util.AWUtil
All Implemented Interfaces:
AWObject

public final class AWUtil
extends AWBaseObject


Nested Class Summary
static class AWUtil.ElementIterator
          Iterate over elements of the template.
static interface AWUtil.FileProcessor
           
static interface AWUtil.ValueMapper
           
 
Field Summary
static boolean AllowsConcurrentRequestHandling
           
static char BeginQueryChar
           
static String DefaultCharacterEncoding
          Parse a string that is URL encoded.
static char Equals
           
static int IdStringRadix
           
static boolean IsRapidTurnaroundEnabled
           
static String QuoteString
           
static boolean RequiresThreadSafety
           
static String TokenizerDelim
           
static AWEncodedString UndefinedEncodedString
           
 
Fields inherited from class ariba.ui.aribaweb.util.AWBaseObject
AribaHashtableClass, AribaVectorClass, ClassClass, EmptyHashtable, EmptyMap, EmptyVector, False, IntegerClass, JavaHashtableClass, JavaMapClass, JavaVectorClass, LogHandling, NullObject, ObjectClass, StringClass, True, UndefinedObject, UndefinedString, UninitializedRealNumber
 
Constructor Summary
AWUtil()
           
 
Method Summary
static void addElement(List receiver, Object element)
           
static Object addElement(Object[] targetArray, Object newElement)
           
static void addElements(List destination, List source)
           
static void addElements(List destination, Object[] source)
           
static void addElements(Map destination, Map source)
           
static void addElements(Map destination, Map source, boolean allowsReplace)
           
static void addElements(Map destinationHashtable, Object[] objectArray)
           
static String addEmbeddedContextForDefaultString(int key, String defaultString, String componentPath)
           
static String briefStackTrace()
           
static int burnCpu(int loopCount)
           
static int burnCpu100()
           
static AWByteArray byteArrayForFile(File file)
           
static AWByteArray byteArrayForInputStream(InputStream input)
           
static Class classForName(String className)
           
static boolean classImplementsInterface(Class targetClass, Class targetInterface)
           
static boolean classInheritsFromClass(Class classInQuestion, Class targetSuperclass)
           
static void clear(DynamicArray dynamicArray)
           
static void close(InputStream inputStream)
           
static List collect(List items, AWUtil.ValueMapper accessor)
           
static Collection collect(List items, Collection result, AWUtil.ValueMapper accessor)
           
static Class commonSuperclass(Class class1, Class class2)
           
static String componentsJoinedByString(StringArray receiver, String joinString)
           
static StringArray componentsSeparatedByString(String receiver, String separator)
           
static Object concatenateArrays(Object[] array1, Object[] array2)
           
static Object concatenateArrays(Object[] array1, Object[] array2, Class componentType)
           
static boolean contains(Object[] array, Object targetElement)
           
static boolean contains(String receiver, char targetChar)
           
static boolean contains(String receiver, String targetString)
           
static boolean containsIdentical(Object[] array, Object targetElement)
           
static byte[] contentsOfFile(File file)
           
static Map convertToLocalizedStringsTable(List lines)
          Returns a string table for the List of input lines from the resource file.
static Map convertToLocalizedStringsTable(List lines, String resourcePath)
          Returns a string table for the List of input lines from the resource file.
static String countryLocaleDescription(Locale locale)
           
static Date currentDate()
           
static String decamelize(String string, char separator, boolean initialCaps)
           
static String decodeString(String string)
           
static String decodeString(String string, String encoding)
           
static boolean deleteRecursive(File targetFile)
           
static void dispose(Object object)
           
static void eachFile(File dir, FileFilter filter, AWUtil.FileProcessor callback)
           
static AWElement elementOfClass(AWTemplate template, Class target)
           
static Object[] elements(Map sourceHashtable, Class componentClass)
           
static String encodeString(String string)
           
static String encodeString(String string, boolean isPlusAllowed)
           
static String encodeString(String string, boolean isPlusAllowed, String encoding)
           
static boolean equals(byte[] bytes1, byte[] bytes2)
           
static AWEncodedString escapeHtml(Object objectValue)
           
static AWEncodedString escapeHtmlAttribute(Object objectValue)
           
static String escapeHTMLExceptEmbeddedContext(String value)
           
static String escapeHTMLExceptEmbeddedContext(String value, boolean unsafeOnly)
           
static String escapeStringForCsv(String originalString)
           
static AWEncodedString escapeUnsafeHtml(Object objectValue)
           
static AWEncodedString escapeXml(Object objectValue)
           
static int executeCommand(String commandString)
           
static String fileNameToJavaPackage(String delimitedString)
           
static String[] filesWithExtension(File directory, String fileExtension)
           
static String[] filesWithExtension(String directoryName, String fileExtension)
           
static String formatErrorUrl(String fileName)
           
static String fullLocaleDescription(Locale locale)
           
static Object getArray(List receiver, Class componentType)
           
static byte[] getBytes(InputStream inputStream)
           
static AWClassLoader getClassLoader()
           
static String getEmbeddedContextBegin(String key, String componentPath)
           
static String getEmbeddedContextEnd()
           
static String getenv(String envVar)
          For internal use only.
static URL getResource(String name)
           
static String getString(Reader reader)
           
static Map groupBy(Collection items, AWUtil.ValueMapper accessor)
           
static int indexOf(byte[] bytes, byte[] targetBytes, int startIndex)
           
static int indexOf(Object[] array, Object targetElement)
           
static int indexOf(String string, String targetString, int startIndex, boolean ignoresCase)
           
static int indexOfIdentical(Object[] array, Object targetElement)
           
static int indexOfIdentical(Object[] array, Object targetElement, int startingIndex)
           
static String integerIdString(int intValue)
           
static void internKeysAndValues(Map hashtable)
           
static boolean isLineFeed(char charValue)
           
static boolean isNewline(char charValue)
           
static boolean isSpace(char charValue)
           
static boolean isWhitespace(char charValue)
           
static boolean isWhitespace(String targetString)
           
static Object iterate(AWElement element, AWUtil.ElementIterator iter)
           
static Object[] keys(Map sourceHashtable, Class componentClass)
           
static String languageLocaleDescription(Locale locale)
           
static String lastComponent(String delimitedString, char separatorChar)
           
static String lastComponent(String delimitedString, String separatorString)
           
static int lastIndexOfIdentical(List receiver, Object targetObject)
           
static int lastIndexOfIdentical(List receiver, Object targetObject, int startingIndex)
           
static String leftJustify(String sourceString)
           
static int length(Object[] array)
           
static List list(Object... elements)
           
static Properties loadProperties(String resourceName)
           
static Properties loadProperties(URL url)
           
static Locale localeForBrowserLanguageString(String browserLanguageString)
           
static List localesForAcceptLanagugeString(String acceptLanguageString)
           
static Map map(Object... keysAndValues)
           
static int max(int int1, int int2)
           
static int min(int int1, int int2)
           
static File moveAside(File targetFile)
           
static void moveToEnd(Object[] targetArray, int index)
           
static void notImplemented(String message)
           
static String[] parseComponentsString(String receiver, String separator)
           
static List parseCsvFile(String filePath)
           
static List parseCsvStream(InputStream csvStream)
           
static Map parseParameters(String url)
           
static AWStringKeyHashtable parseQueryString(String queryString)
           
static void parseQueryString(String queryString, Map queryStringValues)
           
static String pathToLastComponent(String delimitedString, String separatorString)
           
static String prepareUrlForQueryValues(String url)
          http://www.espn.com -> http://www.espn.com? http://www.espn.com? -> http://www.espn.com? http://www.espn.com?foo=bar -> http://www.espn.com?foo=bar& http://www.espn.com?foo=bar& -> http://www.espn.com?foo=bar&
static void print(PrintStream out, int[] array, int lastIndex)
           
static Map putInHashtable(Map receiverHashtable, Object key, Object value, boolean makeCopy)
           
static Map putInNewHashtable(Map readableHashtable, Object key, Object value)
           
static void putNonNull(Map hashtable, Object key, Object value)
           
static String queryValue(Map queryValues, String key)
           
static char[] realloc(char[] targetArray, int newSize)
           
static int[] realloc(int[] targetArray, int newSize)
           
static long[] realloc(long[] targetArray, int newSize)
           
static Object realloc(Object[] targetArray, int newSize)
           
static short[] realloc(short[] targetArray, int newSize)
           
static String removeAllWhitespace(String targetString)
           
static Object removeElementAt(Object[] targetArray, int index)
           
static void removeFromIndex(List receiver, int targetIndex)
           
static String repeatedString(String str, int count)
           
static String replaceAllOccurrences(String originalString, String stringToReplace, String replacementString)
           
static String replaceLeadingSpacesWithNbsps(String str)
           
static String replaceStringByChar(String originalString, String markerString, char replaceChar)
           
static String replaceStringByString(String originalString, String markerString, String replaceString)
           
static void setClassLoader(AWClassLoader loader)
           
static void sleep(long millis)
           
static int streamCopy(InputStream inputStream, OutputStream outputStream)
           
static String stringPlusInt(String intString, int radix, int addend)
           
static String stringWithContentsOfFile(File file)
           
static String stringWithContentsOfFile(File file, boolean shouldExpectEncoding)
           
static String stringWithContentsOfFile(String filePath)
           
static String stringWithContentsOfFile(String filePath, boolean shouldExpectEncoding)
           
static String stringWithContentsOfInputStream(InputStream inputStream)
           
static String stringWithContentsOfInputStream(InputStream inputStream, boolean shouldExpectEncoding)
           
static String stringWithContentsOfInputStream(InputStream inputStream, boolean shouldExpectEncoding, String defaultCharsetName)
           
static String stripLastComponent(String delimitedString, char separatorChar)
           
static String stripToBaseFilename(String filePath)
           
static Object subarray(Object array, int startIndex, int stopIndex)
           
static Object sublist(Object[] sourceArray, int fromIndex, int toIndex)
           
static String substringTo(String sourceString, char targetChar)
           
static String substringTo(String sourceString, String targetString)
           
static String toString(int intValue)
           
static String toString(Object objectValue)
           
static String unescapeCsvString(String originalString)
           
static File uniqueFile(File directory, String prefix, String suffix)
           
static String uniqueFileName(File directory, String prefix, String suffix)
           
static String urlAddingQueryValue(String url, String key, String val)
           
static String urlAddingQueryValues(String url, Map values)
           
static List vectorWithArray(Object[] objectArray)
           
static void write(OutputStream outputStream, AWEncodedString encodedString, AWCharacterEncoding characterEncoding)
           
static void write(OutputStream outputStream, byte[] bytes, int offset, int length)
           
static void writeLocalizedStringsFile(String directoryName, String componentName, Map localizedStringsHastable)
           
static void writeToFile(byte[] sourceBytes, File file)
           
static void writeToFile(byte[] sourceBytes, String filePath)
           
static void writeToFile(String sourceString, File file)
           
static void writeToFile(String sourceString, String filePath)
           
 
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject
debugString, ensureFieldValuesClear, getFieldValue, init, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RequiresThreadSafety

public static boolean RequiresThreadSafety

IsRapidTurnaroundEnabled

public static boolean IsRapidTurnaroundEnabled

AllowsConcurrentRequestHandling

public static boolean AllowsConcurrentRequestHandling

QuoteString

public static final String QuoteString
See Also:
Constant Field Values

IdStringRadix

public static final int IdStringRadix
See Also:
Constant Field Values

UndefinedEncodedString

public static final AWEncodedString UndefinedEncodedString

BeginQueryChar

public static final char BeginQueryChar
See Also:
Constant Field Values

TokenizerDelim

public static final String TokenizerDelim
See Also:
Constant Field Values

Equals

public static final char Equals
See Also:
Constant Field Values

DefaultCharacterEncoding

public static final String DefaultCharacterEncoding
Parse a string that is URL encoded. This method is copied from ariba.util.core.net.CGI, that version has a bug that is not yet fixed.

Constructor Detail

AWUtil

public AWUtil()
Method Detail

setClassLoader

public static void setClassLoader(AWClassLoader loader)

getClassLoader

public static AWClassLoader getClassLoader()

classInheritsFromClass

public static boolean classInheritsFromClass(Class classInQuestion,
                                             Class targetSuperclass)

classImplementsInterface

public static boolean classImplementsInterface(Class targetClass,
                                               Class targetInterface)

commonSuperclass

public static Class commonSuperclass(Class class1,
                                     Class class2)

classForName

public static Class classForName(String className)

getString

public static String getString(Reader reader)

stringWithContentsOfInputStream

public static String stringWithContentsOfInputStream(InputStream inputStream,
                                                     boolean shouldExpectEncoding)

stringWithContentsOfInputStream

public static String stringWithContentsOfInputStream(InputStream inputStream,
                                                     boolean shouldExpectEncoding,
                                                     String defaultCharsetName)

stringWithContentsOfInputStream

public static String stringWithContentsOfInputStream(InputStream inputStream)

stringWithContentsOfFile

public static String stringWithContentsOfFile(String filePath,
                                              boolean shouldExpectEncoding)

stringWithContentsOfFile

public static String stringWithContentsOfFile(String filePath)

stringWithContentsOfFile

public static String stringWithContentsOfFile(File file,
                                              boolean shouldExpectEncoding)

stringWithContentsOfFile

public static String stringWithContentsOfFile(File file)

close

public static void close(InputStream inputStream)

byteArrayForFile

public static AWByteArray byteArrayForFile(File file)

byteArrayForInputStream

public static AWByteArray byteArrayForInputStream(InputStream input)

getBytes

public static byte[] getBytes(InputStream inputStream)

contentsOfFile

public static byte[] contentsOfFile(File file)

streamCopy

public static int streamCopy(InputStream inputStream,
                             OutputStream outputStream)

moveAside

public static File moveAside(File targetFile)

writeToFile

public static void writeToFile(String sourceString,
                               File file)

writeToFile

public static void writeToFile(String sourceString,
                               String filePath)

writeToFile

public static void writeToFile(byte[] sourceBytes,
                               File file)

writeToFile

public static void writeToFile(byte[] sourceBytes,
                               String filePath)

parseCsvFile

public static List parseCsvFile(String filePath)

parseCsvStream

public static List parseCsvStream(InputStream csvStream)

parseComponentsString

public static String[] parseComponentsString(String receiver,
                                             String separator)

componentsSeparatedByString

public static StringArray componentsSeparatedByString(String receiver,
                                                      String separator)

componentsJoinedByString

public static String componentsJoinedByString(StringArray receiver,
                                              String joinString)

replaceAllOccurrences

public static String replaceAllOccurrences(String originalString,
                                           String stringToReplace,
                                           String replacementString)

replaceStringByString

public static String replaceStringByString(String originalString,
                                           String markerString,
                                           String replaceString)

replaceStringByChar

public static String replaceStringByChar(String originalString,
                                         String markerString,
                                         char replaceChar)

replaceLeadingSpacesWithNbsps

public static String replaceLeadingSpacesWithNbsps(String str)

repeatedString

public static String repeatedString(String str,
                                    int count)

escapeStringForCsv

public static String escapeStringForCsv(String originalString)

unescapeCsvString

public static String unescapeCsvString(String originalString)

substringTo

public static String substringTo(String sourceString,
                                 char targetChar)

substringTo

public static String substringTo(String sourceString,
                                 String targetString)

isSpace

public static boolean isSpace(char charValue)

isNewline

public static boolean isNewline(char charValue)

isLineFeed

public static boolean isLineFeed(char charValue)

isWhitespace

public static boolean isWhitespace(char charValue)

isWhitespace

public static boolean isWhitespace(String targetString)

leftJustify

public static String leftJustify(String sourceString)

stringPlusInt

public static String stringPlusInt(String intString,
                                   int radix,
                                   int addend)

removeAllWhitespace

public static String removeAllWhitespace(String targetString)

escapeHTMLExceptEmbeddedContext

public static String escapeHTMLExceptEmbeddedContext(String value)

escapeHTMLExceptEmbeddedContext

public static String escapeHTMLExceptEmbeddedContext(String value,
                                                     boolean unsafeOnly)

escapeHtml

public static AWEncodedString escapeHtml(Object objectValue)

escapeUnsafeHtml

public static AWEncodedString escapeUnsafeHtml(Object objectValue)

escapeXml

public static AWEncodedString escapeXml(Object objectValue)

escapeHtmlAttribute

public static AWEncodedString escapeHtmlAttribute(Object objectValue)

integerIdString

public static String integerIdString(int intValue)

toString

public static String toString(int intValue)

toString

public static String toString(Object objectValue)

localeForBrowserLanguageString

public static Locale localeForBrowserLanguageString(String browserLanguageString)

localesForAcceptLanagugeString

public static List localesForAcceptLanagugeString(String acceptLanguageString)

formatErrorUrl

public static String formatErrorUrl(String fileName)

vectorWithArray

public static List vectorWithArray(Object[] objectArray)

contains

public static boolean contains(String receiver,
                               String targetString)

contains

public static boolean contains(String receiver,
                               char targetChar)

indexOf

public static int indexOf(Object[] array,
                          Object targetElement)

contains

public static boolean contains(Object[] array,
                               Object targetElement)

indexOfIdentical

public static int indexOfIdentical(Object[] array,
                                   Object targetElement,
                                   int startingIndex)

indexOfIdentical

public static int indexOfIdentical(Object[] array,
                                   Object targetElement)

containsIdentical

public static boolean containsIdentical(Object[] array,
                                        Object targetElement)

concatenateArrays

public static Object concatenateArrays(Object[] array1,
                                       Object[] array2,
                                       Class componentType)

concatenateArrays

public static Object concatenateArrays(Object[] array1,
                                       Object[] array2)

length

public static int length(Object[] array)

equals

public static boolean equals(byte[] bytes1,
                             byte[] bytes2)

indexOf

public static int indexOf(byte[] bytes,
                          byte[] targetBytes,
                          int startIndex)

indexOf

public static int indexOf(String string,
                          String targetString,
                          int startIndex,
                          boolean ignoresCase)

removeElementAt

public static Object removeElementAt(Object[] targetArray,
                                     int index)

moveToEnd

public static void moveToEnd(Object[] targetArray,
                             int index)

realloc

public static Object realloc(Object[] targetArray,
                             int newSize)

realloc

public static char[] realloc(char[] targetArray,
                             int newSize)

realloc

public static int[] realloc(int[] targetArray,
                            int newSize)

realloc

public static short[] realloc(short[] targetArray,
                              int newSize)

realloc

public static long[] realloc(long[] targetArray,
                             int newSize)

addElement

public static Object addElement(Object[] targetArray,
                                Object newElement)

sublist

public static Object sublist(Object[] sourceArray,
                             int fromIndex,
                             int toIndex)

subarray

public static Object subarray(Object array,
                              int startIndex,
                              int stopIndex)

addElements

public static void addElements(Map destination,
                               Map source)

addElements

public static void addElements(Map destination,
                               Map source,
                               boolean allowsReplace)

addElements

public static void addElements(Map destinationHashtable,
                               Object[] objectArray)

map

public static Map map(Object... keysAndValues)

list

public static List list(Object... elements)

keys

public static Object[] keys(Map sourceHashtable,
                            Class componentClass)

elements

public static Object[] elements(Map sourceHashtable,
                                Class componentClass)

putInNewHashtable

public static Map putInNewHashtable(Map readableHashtable,
                                    Object key,
                                    Object value)

putInHashtable

public static Map putInHashtable(Map receiverHashtable,
                                 Object key,
                                 Object value,
                                 boolean makeCopy)

internKeysAndValues

public static void internKeysAndValues(Map hashtable)

groupBy

public static Map groupBy(Collection items,
                          AWUtil.ValueMapper accessor)

collect

public static Collection collect(List items,
                                 Collection result,
                                 AWUtil.ValueMapper accessor)

collect

public static List collect(List items,
                           AWUtil.ValueMapper accessor)

addElements

public static void addElements(List destination,
                               List source)

addElements

public static void addElements(List destination,
                               Object[] source)

addElement

public static void addElement(List receiver,
                              Object element)

getArray

public static Object getArray(List receiver,
                              Class componentType)

removeFromIndex

public static void removeFromIndex(List receiver,
                                   int targetIndex)

lastIndexOfIdentical

public static int lastIndexOfIdentical(List receiver,
                                       Object targetObject,
                                       int startingIndex)

lastIndexOfIdentical

public static int lastIndexOfIdentical(List receiver,
                                       Object targetObject)

clear

public static void clear(DynamicArray dynamicArray)

fullLocaleDescription

public static String fullLocaleDescription(Locale locale)

countryLocaleDescription

public static String countryLocaleDescription(Locale locale)

languageLocaleDescription

public static String languageLocaleDescription(Locale locale)

filesWithExtension

public static String[] filesWithExtension(File directory,
                                          String fileExtension)

filesWithExtension

public static String[] filesWithExtension(String directoryName,
                                          String fileExtension)

eachFile

public static void eachFile(File dir,
                            FileFilter filter,
                            AWUtil.FileProcessor callback)

lastComponent

public static String lastComponent(String delimitedString,
                                   String separatorString)

pathToLastComponent

public static String pathToLastComponent(String delimitedString,
                                         String separatorString)

fileNameToJavaPackage

public static String fileNameToJavaPackage(String delimitedString)

lastComponent

public static String lastComponent(String delimitedString,
                                   char separatorChar)

stripLastComponent

public static String stripLastComponent(String delimitedString,
                                        char separatorChar)

uniqueFile

public static File uniqueFile(File directory,
                              String prefix,
                              String suffix)

uniqueFileName

public static String uniqueFileName(File directory,
                                    String prefix,
                                    String suffix)

stripToBaseFilename

public static String stripToBaseFilename(String filePath)

decamelize

public static String decamelize(String string,
                                char separator,
                                boolean initialCaps)

burnCpu100

public static int burnCpu100()

burnCpu

public static int burnCpu(int loopCount)

currentDate

public static Date currentDate()

writeLocalizedStringsFile

public static void writeLocalizedStringsFile(String directoryName,
                                             String componentName,
                                             Map localizedStringsHastable)

convertToLocalizedStringsTable

public static Map convertToLocalizedStringsTable(List lines)
Returns a string table for the List of input lines from the resource file.


convertToLocalizedStringsTable

public static Map convertToLocalizedStringsTable(List lines,
                                                 String resourcePath)
Returns a string table for the List of input lines from the resource file. If resourcePath is non-null, the embedded contextualization information is included as part of the localized strings in the string table.


addEmbeddedContextForDefaultString

public static String addEmbeddedContextForDefaultString(int key,
                                                        String defaultString,
                                                        String componentPath)

getEmbeddedContextBegin

public static String getEmbeddedContextBegin(String key,
                                             String componentPath)

getEmbeddedContextEnd

public static String getEmbeddedContextEnd()

deleteRecursive

public static boolean deleteRecursive(File targetFile)

executeCommand

public static int executeCommand(String commandString)

decodeString

public static String decodeString(String string)

decodeString

public static String decodeString(String string,
                                  String encoding)

encodeString

public static String encodeString(String string)

encodeString

public static String encodeString(String string,
                                  boolean isPlusAllowed)

encodeString

public static String encodeString(String string,
                                  boolean isPlusAllowed,
                                  String encoding)

parseQueryString

public static AWStringKeyHashtable parseQueryString(String queryString)

parseQueryString

public static void parseQueryString(String queryString,
                                    Map queryStringValues)

parseParameters

public static Map parseParameters(String url)

queryValue

public static String queryValue(Map queryValues,
                                String key)

putNonNull

public static void putNonNull(Map hashtable,
                              Object key,
                              Object value)

getenv

public static String getenv(String envVar)
For internal use only. This should never be called by production code.


prepareUrlForQueryValues

public static String prepareUrlForQueryValues(String url)
http://www.espn.com -> http://www.espn.com? http://www.espn.com? -> http://www.espn.com? http://www.espn.com?foo=bar -> http://www.espn.com?foo=bar& http://www.espn.com?foo=bar& -> http://www.espn.com?foo=bar&


urlAddingQueryValues

public static String urlAddingQueryValues(String url,
                                          Map values)

urlAddingQueryValue

public static String urlAddingQueryValue(String url,
                                         String key,
                                         String val)

dispose

public static void dispose(Object object)

min

public static int min(int int1,
                      int int2)

max

public static int max(int int1,
                      int int2)

briefStackTrace

public static String briefStackTrace()

print

public static void print(PrintStream out,
                         int[] array,
                         int lastIndex)

sleep

public static void sleep(long millis)

notImplemented

public static void notImplemented(String message)

write

public static void write(OutputStream outputStream,
                         byte[] bytes,
                         int offset,
                         int length)

write

public static void write(OutputStream outputStream,
                         AWEncodedString encodedString,
                         AWCharacterEncoding characterEncoding)

iterate

public static Object iterate(AWElement element,
                             AWUtil.ElementIterator iter)

elementOfClass

public static AWElement elementOfClass(AWTemplate template,
                                       Class target)

loadProperties

public static Properties loadProperties(URL url)

getResource

public static URL getResource(String name)

loadProperties

public static Properties loadProperties(String resourceName)


AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.