Class PrettyPrintFormat
java.lang.Object
org.mozilla.jss.netscape.security.util.PrettyPrintFormat
This class will display the certificate content in predefined
format.
- Version:
- $Revision$, $Date$
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrettyPrintFormat
(String separator) PrettyPrintFormat
(String separator, int lineLen) PrettyPrintFormat
(String separator, int lineLen, int indentSize) -
Method Summary
Modifier and TypeMethodDescriptionindent
(int size) Provide white space indention stevep - speed improvements.toHexString
(byte[] in) toHexString
(byte[] in, int indentSize) toHexString
(byte[] in, int indentSize, int lineLen) toHexString
(byte[] in, int indentSize, int lineLen, String separator) Convert Byte Array to Hex String Format stevep - speedup by factor of 8
-
Field Details
-
mSeparator
-
mIndentSize
private int mIndentSize -
mLineLen
private int mLineLen -
spaces
- See Also:
-
hexdigits
private static final char[] hexdigits
-
-
Constructor Details
-
PrettyPrintFormat
-
PrettyPrintFormat
-
PrettyPrintFormat
-
-
Method Details
-
indent
Provide white space indention stevep - speed improvements. Factor of 10 improvement- Parameters:
size
- number of white space to be returned- Returns:
- white spaces
-
toHexString
Convert Byte Array to Hex String Format stevep - speedup by factor of 8- Parameters:
in
- byte array of data to hexifyindentSize
- number of spaces to prepend before each linelineLen
- number of bytes to output on each line (0 means: put everything on one lineseparator
- the first character of this string will be used as the separator between bytes.- Returns:
- string representation
-
toHexString
-
toHexString
-
toHexString
-