org.sblim.slp.internal

Class Utils


public abstract class Utils
extends java.lang.Object

Utils.java (C) Copyright IBM Corp. 2005, 2006 THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. You can obtain a current copy of the Common Public License from http://www.opensource.org/licenses/cpl1.0.php

Method Summary

static String
escapeAttributeString(String pString)
static String
escapeChar(char pChar)
static void
escapeScopeStrings(Vector pValueList)
static void
escapeTags(Vector pValueList)
static byte[]
getStringBytes(String pString, String pEncoding)
static Vector
parseCommaSeparatedList(String pString, boolean pIgnoreParenthesis)
static String
unescapeAttributeString(String pString)
static byte[]
unescapeByteArray(String pString)
static char
unescapeChar(String pString)
static void
unescapeScopeStrings(Vector pValueList)
static String
vectorToCommaSeparatedList(Vector pVector)

Method Details

escapeAttributeString

public static String escapeAttributeString(String pString)
            throws ServiceLocationException

escapeChar

public static String escapeChar(char pChar)

escapeScopeStrings

public static void escapeScopeStrings(Vector pValueList)
            throws ServiceLocationException

escapeTags

public static void escapeTags(Vector pValueList)
            throws ServiceLocationException

getStringBytes

public static byte[] getStringBytes(String pString,
                                    String pEncoding)

parseCommaSeparatedList

public static Vector parseCommaSeparatedList(String pString,
                                             boolean pIgnoreParenthesis)
            throws ServiceLocationException

unescapeAttributeString

public static String unescapeAttributeString(String pString)
            throws ServiceLocationException

unescapeByteArray

public static byte[] unescapeByteArray(String pString)
            throws ServiceLocationException

unescapeChar

public static char unescapeChar(String pString)
            throws ServiceLocationException

unescapeScopeStrings

public static void unescapeScopeStrings(Vector pValueList)
            throws ServiceLocationException

vectorToCommaSeparatedList

public static String vectorToCommaSeparatedList(Vector pVector)

Copyright © 2005, 2007 IBM Corporation. All Rights Reserved.