com.ibm.db.base
Class UtilitiesBase

java.lang.Object
  |
  +--com.ibm.db.base.UtilitiesBase

public class UtilitiesBase
extends java.lang.Object

UtilitiesBase contains utility methods that are used by classes in the com.ibm.db.base package.


Field Summary
private static java.lang.String copyright
           
 
Constructor Summary
UtilitiesBase()
           
 
Method Summary
protected static byte decodeByte(java.io.StringReader inString)
          Decode a byte
static byte[] decodeData(java.lang.String dataToDecode)
          This method was created by a SmartGuide.
protected static void encodeByte(byte aByte, java.io.StringWriter outString)
          This method was created by a SmartGuide.
static java.lang.String encodeData(byte[] bytesToEncode, int bytesPerLine)
          This method was created by a SmartGuide.
protected static java.lang.String getMessage(java.lang.String aKey)
          This method was created by a SmartGuide.
static java.lang.String getMessage(java.lang.String aKey, java.lang.Object[] msgArgs)
          This method returns the parameterized message with the specified key from the resource bundle.
protected static java.lang.String logMessage(java.lang.String msgKey)
          This method was created by a SmartGuide.
protected static java.lang.String logMessage(java.lang.String msgKey, java.lang.Object[] args)
          This method was created by a SmartGuide.
protected static java.lang.String password(java.lang.String pwd)
           
static byte[] unzipData(byte[] bytes)
          Unzip the bytes passed in.
static byte[] zipData(byte[] bytes)
          Zip the bytes passed in
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

copyright

private static final java.lang.String copyright
Constructor Detail

UtilitiesBase

public UtilitiesBase()
Method Detail

decodeByte

protected static byte decodeByte(java.io.StringReader inString)
                          throws java.io.IOException
Decode a byte
Parameters:
inString - java.io.StringReader The Reader to read the byte from
Returns:
byte the decoded byte

decodeData

public static byte[] decodeData(java.lang.String dataToDecode)
This method was created by a SmartGuide.
Parameters:
dataToDecode - java.lang.String
Returns:
byte[]

encodeByte

protected static void encodeByte(byte aByte,
                                 java.io.StringWriter outString)
This method was created by a SmartGuide.
Parameters:
aByte - byte
outString - java.io.StringWriter

encodeData

public static java.lang.String encodeData(byte[] bytesToEncode,
                                          int bytesPerLine)
This method was created by a SmartGuide.
Parameters:
bytesToEncode - byte[]
Returns:
java.lang.String

getMessage

protected static java.lang.String getMessage(java.lang.String aKey)
This method was created by a SmartGuide.
Parameters:
aKey - java.lang.String
Returns:
java.lang.String

getMessage

public static java.lang.String getMessage(java.lang.String aKey,
                                          java.lang.Object[] msgArgs)
This method returns the parameterized message with the specified key from the resource bundle.
Parameters:
aKey - java.lang.String
Returns:
java.lang.String

logMessage

protected static java.lang.String logMessage(java.lang.String msgKey)
This method was created by a SmartGuide.
Parameters:
message - java.lang.String
Returns:
java.lang.String

logMessage

protected static java.lang.String logMessage(java.lang.String msgKey,
                                             java.lang.Object[] args)
This method was created by a SmartGuide.
Parameters:
message - java.lang.String
Returns:
java.lang.String

password

protected static java.lang.String password(java.lang.String pwd)
                                    throws DataException

unzipData

public static byte[] unzipData(byte[] bytes)
                        throws DataException
Unzip the bytes passed in.
Parameters:
bytes - byte[] The bytes to unzip
Returns:
byte[] The unzipped bytes

zipData

public static byte[] zipData(byte[] bytes)
                      throws DataException
Zip the bytes passed in
Parameters:
bytes - byte[] The bytes to zip