Class PrettyPrintFormat


  • public class PrettyPrintFormat
    extends java.lang.Object
    This class will display the certificate content in predefined format.
    Version:
    $Revision$, $Date$
    Author:
    Andrew Wnuk
    • Constructor Summary

      Constructors 
      Constructor Description
      PrettyPrintFormat​(java.lang.String separator)  
      PrettyPrintFormat​(java.lang.String separator, int lineLen)  
      PrettyPrintFormat​(java.lang.String separator, int lineLen, int indentSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String indent​(int size)
      Provide white space indention stevep - speed improvements.
      java.lang.String toHexString​(byte[] in)  
      java.lang.String toHexString​(byte[] in, int indentSize)  
      java.lang.String toHexString​(byte[] in, int indentSize, int lineLen)  
      java.lang.String toHexString​(byte[] in, int indentSize, int lineLen, java.lang.String separator)
      Convert Byte Array to Hex String Format stevep - speedup by factor of 8
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PrettyPrintFormat

        public PrettyPrintFormat​(java.lang.String separator)
      • PrettyPrintFormat

        public PrettyPrintFormat​(java.lang.String separator,
                                 int lineLen)
      • PrettyPrintFormat

        public PrettyPrintFormat​(java.lang.String separator,
                                 int lineLen,
                                 int indentSize)
    • Method Detail

      • indent

        public java.lang.String indent​(int size)
        Provide white space indention stevep - speed improvements. Factor of 10 improvement
        Parameters:
        numSpace - number of white space to be returned
        Returns:
        white spaces
      • toHexString

        public java.lang.String toHexString​(byte[] in,
                                            int indentSize,
                                            int lineLen,
                                            java.lang.String separator)
        Convert Byte Array to Hex String Format stevep - speedup by factor of 8
        Parameters:
        byte - array of data to hexify
        indentSize - number of spaces to prepend before each line
        lineLen - number of bytes to output on each line (0 means: put everything on one line
        separator - the first character of this string will be used as the separator between bytes.
        Returns:
        string representation
      • toHexString

        public java.lang.String toHexString​(byte[] in,
                                            int indentSize,
                                            int lineLen)
      • toHexString

        public java.lang.String toHexString​(byte[] in,
                                            int indentSize)
      • toHexString

        public java.lang.String toHexString​(byte[] in)