com.adobe.livecycle.output.utils
Class OutputServiceClientUtils

java.lang.Object
  extended by com.adobe.livecycle.output.utils.OutputServiceClientUtils

public final class OutputServiceClientUtils
extends java.lang.Object


Method Summary
static PDFARevisionNumber convertIntToPDFARevisionNumber(int revisionNumber)
           
static AcrobatVersion convertStringToAcrobatVersion(java.lang.String version)
           
static PDFAConformance convertStringToPDFAConformance(java.lang.String conformance)
           
static RetainSignatureField convertStringToRetainSignatureField(java.lang.String name)
           
static int findArraySegment(byte[] origArray, int start, byte[] findSegment)
          Finds the location of a byte array seqment inside a source byte array
static int findArraySegmentLimited(byte[] origArray, int start, byte[] findSegment, int origArrayLimit)
          Finds the location of a byte array seqment inside a source byte array
static java.lang.String getParameter(java.lang.String queryString, java.lang.String parameter)
          Extracts the requested parameter from the queryString.
static java.lang.String getParameter(java.lang.String queryString, java.lang.String parameter, java.lang.String sEncoding)
          Extracts the requested parameter from the queryString.
static boolean isEmptyOrNull(java.lang.String val)
           
static java.lang.String mergeParameters(java.lang.String queryStringBase, java.lang.String queryStringOver)
          Reads the raw request input buffer.
static byte[] resizeByteArray(byte[] oldArray, int newSize)
          Reallocates an array with a new size, and copies the contents of the old array to the new array.
static byte[] URLDecode(java.lang.String sURLEncoded)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isEmptyOrNull

public static boolean isEmptyOrNull(java.lang.String val)

URLDecode

public static byte[] URLDecode(java.lang.String sURLEncoded)

resizeByteArray

public static byte[] resizeByteArray(byte[] oldArray,
                                     int newSize)
Reallocates an array with a new size, and copies the contents of the old array to the new array.

Parameters:
oldArray - the old array, to be reallocated.
newSize - the new array size.
Returns:
A new array with the same contents.

getParameter

public static java.lang.String getParameter(java.lang.String queryString,
                                            java.lang.String parameter)
Extracts the requested parameter from the queryString. Non-case sensitive.

Parameters:
queryString -
parameter -
Throws:
java.lang.IOException, - java.lang.ServletException

getParameter

public static java.lang.String getParameter(java.lang.String queryString,
                                            java.lang.String parameter,
                                            java.lang.String sEncoding)
Extracts the requested parameter from the queryString. Non-case sensitive.

Parameters:
queryString -
parameter -
Throws:
java.lang.IOException, - java.lang.ServletException

mergeParameters

public static java.lang.String mergeParameters(java.lang.String queryStringBase,
                                               java.lang.String queryStringOver)
Reads the raw request input buffer.

Parameters:
request -
Throws:
java.lang.IOException, - java.lang.ServletException

findArraySegmentLimited

public static int findArraySegmentLimited(byte[] origArray,
                                          int start,
                                          byte[] findSegment,
                                          int origArrayLimit)
Finds the location of a byte array seqment inside a source byte array

Parameters:
origArray - the source byte array to be searched.
start - the start index to begin search
findSeqment - the segment to be found.
origArrayLimit - a limit on the length of the origArray to be searched
Returns:
(-1) if not found or index into origArray that the seqment was found.

findArraySegment

public static int findArraySegment(byte[] origArray,
                                   int start,
                                   byte[] findSegment)
Finds the location of a byte array seqment inside a source byte array

Parameters:
origArray - the source byte array to be searched.
start - the start index to begin search
findSeqment - the segment to be found.
Returns:
(-1) if not found or index into origArray that the seqment was found.

convertIntToPDFARevisionNumber

public static PDFARevisionNumber convertIntToPDFARevisionNumber(int revisionNumber)

convertStringToPDFAConformance

public static PDFAConformance convertStringToPDFAConformance(java.lang.String conformance)

convertStringToAcrobatVersion

public static AcrobatVersion convertStringToAcrobatVersion(java.lang.String version)

convertStringToRetainSignatureField

public static RetainSignatureField convertStringToRetainSignatureField(java.lang.String name)