vqServer API Class vq.utils.utils

java.lang.Object
    |
    +----vq.utils.utils
Contents
Package index
Package
API index

public class utils
extends java.lang.Object
Utility class containing miscellaneous static utility methods.


Constructor Index

 o utils()
 

Method Index

 o b64Decode(byte[])
Decodes a base 64 byte[]
 o b64Decode(String)
Decodes a base 64 string.
 o b64Encode(String)
Encodes the specified string in base 64.
 o getCookieAttr(String, String)
Extracts the specifed attribute value from an HTTP cookie header.
 o qsDecode(String)
Decodes a "query string".
 o qsEncode(String)
Encodes the specified string encoded in "query string" format.
 o strToByteArr(String)
Returns a representation of a String to a byte[], mapping each character to a single byte.

Constructor Detail

 o utils
public utils()

Method Detail

 o strToByteArr
public static byte[] strToByteArr(java.lang.String theString)
          Returns a representation of a String to a byte[], mapping each character to a single byte.
Parameters:
theString - the string to convert
Returns:
a byte[] representation of the specified string
 o getCookieAttr
public static java.lang.String getCookieAttr(java.lang.String theCookie,
                                   java.lang.String theAttribute)
          Extracts the specifed attribute value from an HTTP cookie header.
Parameters:
theCookie - data part of the cookie header
theAttribute - the name of the attribute to extract
Returns:
the value of the attribute specified
 o qsEncode
public static final java.lang.String qsEncode(java.lang.String plainText)
          Encodes the specified string encoded in "query string" format.
Parameters:
theString - the string to encode
Returns:
the encoded string
 o qsDecode
public static final java.lang.String qsDecode(java.lang.String theCipher)
          Decodes a "query string".
Parameters:
theCipher - the string to decode
Returns:
the decoded string
 o b64Encode
public static final java.lang.String b64Encode(java.lang.String plainText)
          Encodes the specified string in base 64.
Parameters:
plainText - the string to encode
Returns:
the encoded string
 o b64Decode
public static final java.lang.String b64Decode(java.lang.String theCipher)
          Decodes a base 64 string.
Parameters:
theCipher - the string to decode
Returns:
the decoded string
 o b64Decode
public static final byte[] b64Decode(byte theCipherArr[])
          Decodes a base 64 byte[]
Parameters:
theCipherArr - the byte[] to decode
Returns:
the decoded byte[]


vqServer API version 1.9. vqServer and the vqServer API are copyright © Steve Shering and vqSoft 1997-2000. Last updated 15 May 2000.

Contents
Package index
Package
API index