fi.hut.tcm.spki.format
Class CanonicalSpki

java.lang.Object
  |
  +--fi.hut.tcm.spki.format.CanonicalSpki

public class CanonicalSpki
extends java.lang.Object
implements Format

CanonicalSpki The SPKI canonical (binary) format.


Field Summary
private static int DEFAULT_EMPTY_CAPACITY
          Initial capacity of our buffer.
static java.util.HashMap makeassociations
           
private  java.io.ByteArrayOutputStream os
           
static java.util.HashMap parseassociations
           
 
Constructor Summary
CanonicalSpki()
           
 
Method Summary
 void appendBytes(java.lang.String str)
          Append bytes without a length indicator.
 void appendNumber(java.math.BigInteger number)
           
 void appendString(java.lang.String str)
          Append a byte string and it's length indicator.
 byte[] getBuffer()
           
 void putBuffer(byte[] buf)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

DEFAULT_EMPTY_CAPACITY

private static final int DEFAULT_EMPTY_CAPACITY
Initial capacity of our buffer.

os

private java.io.ByteArrayOutputStream os

parseassociations

public static java.util.HashMap parseassociations

makeassociations

public static java.util.HashMap makeassociations
Constructor Detail

CanonicalSpki

public CanonicalSpki()
Method Detail

getBuffer

public byte[] getBuffer()

putBuffer

public void putBuffer(byte[] buf)

appendBytes

public void appendBytes(java.lang.String str)
Append bytes without a length indicator.

appendString

public void appendString(java.lang.String str)
Append a byte string and it's length indicator.

appendNumber

public void appendNumber(java.math.BigInteger number)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object