com.objsys.asn1j.runtime
Class Asn1DerEncodeBuffer

java.lang.Object
  extended by com.objsys.asn1j.runtime.Asn1MessageBufferBase
      extended by com.objsys.asn1j.runtime.Asn1MessageBuffer
          extended by com.objsys.asn1j.runtime.Asn1EncodeBuffer
              extended by com.objsys.asn1j.runtime.Asn1BerEncodeBuffer
                  extended by com.objsys.asn1j.runtime.Asn1DerEncodeBuffer

public class Asn1DerEncodeBuffer
extends Asn1BerEncodeBuffer

This class handles the encoding of ASN.1 messages as specified in the Distinguished Encoding Rules (DER) as specified in the ITU-T X.690 standard.


Field Summary
 
Fields inherited from class com.objsys.asn1j.runtime.Asn1EncodeBuffer
INITIAL_SIZE, mByteIndex, mData
 
Fields inherited from class com.objsys.asn1j.runtime.Asn1MessageBufferBase
context, mTypeCode
 
Constructor Summary
Asn1DerEncodeBuffer()
          This constructor creates a DER encode buffer object with the default size.
Asn1DerEncodeBuffer(int size)
          This constructor creates a DER encode buffer object with the given initial size.
 
Method Summary
 boolean isBER()
          This method returns true when the underlying buffer is a BER buffer.
 
Methods inherited from class com.objsys.asn1j.runtime.Asn1BerEncodeBuffer
binDump, binDump, checkSize, copy, copy, copy, copy, encodeIdentifier, encodeIntValue, encodeLength, encodeTag, encodeTag, encodeTagAndLength, encodeTagAndLength, getByteArrayInputStream, getInputStream, getMsgCopy, getMsgLength, reset, toString, write
 
Methods inherited from class com.objsys.asn1j.runtime.Asn1EncodeBuffer
binDump, hexDump, hexDump, initBuffer, trimBitString
 
Methods inherited from class com.objsys.asn1j.runtime.Asn1MessageBuffer
addNamedEventHandler, getEventHandlerListCount, hasEventHandlers, invokeCharacters, invokeEndElement, invokeStartElement, setEventHandlerList
 
Methods inherited from class com.objsys.asn1j.runtime.Asn1MessageBufferBase
getContext, hexDump, hexDump, setKey, setTypeCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Asn1DerEncodeBuffer

public Asn1DerEncodeBuffer()
This constructor creates a DER encode buffer object with the default size. Whenever the buffer becomes full, the buffer will be expanded.


Asn1DerEncodeBuffer

public Asn1DerEncodeBuffer(int size)
This constructor creates a DER encode buffer object with the given initial size. Whenever the buffer becomes full, the buffer will be expanded. For best performance, this size should be large enough to prevent resizing in normal operation.

Parameters:
size - The initial size in bytes of an encode buffer.
Method Detail

isBER

public boolean isBER()
This method returns true when the underlying buffer is a BER buffer. This returns false for the DER implementation.

Overrides:
isBER in class Asn1BerEncodeBuffer
Returns:
False.