XCMS Toolkit

schemajic.decoder
Class DefiniteFormDecoder

java.lang.Object
  extended by schemajic.decoder.DefiniteFormDecoder
All Implemented Interfaces:
LengthDecoder

public class DefiniteFormDecoder
extends java.lang.Object
implements LengthDecoder

Implements the LengthDecoder interface to decode values of ASN.1 types represented in a conceptual Tag - Length - Value (TLV) format under the Distinguished Encoding Rules (DER) of ASN.1.

Version:
1.00 - 2006/02/10
Author:
support@phillipgriffin.com

Constructor Summary
DefiniteFormDecoder()
           
 
Method Summary
 int decode(java.io.InputStream in)
          Decode a length.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefiniteFormDecoder

public DefiniteFormDecoder()
Method Detail

decode

public int decode(java.io.InputStream in)
           throws DecodingException
Decode a length. A short form length occupies a single byte and a long from length occupies two or more bytes.

Specified by:
decode in interface LengthDecoder
Parameters:
in - an input stream
Returns:
the length
Throws:
DecodingException

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.