1 /*
2  * @(#) $Id: ASN1PullParser.java,v 1.3 2003/07/08 08:13:52 pankaj Exp $
3  *
4  * Copyright (c) 2002-03 by Pankaj Kumar (http://www.pankaj-k.net). 
5  * All rights reserved.
6  *
7  * The license governing the use of this file can be found in the 
8  * root directory of the containing software.
9  */
10package org.jstk.asn1;
11
12public interface ASN1PullParser {
13    public static final int ANY = 0;
14    public static final int BOOLEAN = 1;
15    public final static int INTEGER = 2;
16    public final static int BIT_STRING = 3;
17    public final static int OCTET_STRING = 4;
18    public final static int NULL = 5;
19    public final static int OID = 6;
20    public final static int START_SEQ = 7;
21    public final static int END_SEQ = 8;
22    public final static int START_SET = 9;
23    public final static int END_SET = 10;
24    public final static int SEQ = 16;
25    public final static int SET = 17;
26    public final static int PrintableString = 19;
27    public final static int T61String = 20;
28    public final static int IA5String = 22;
29    public final static int UTCTime = 23;
30
31    public final static int EOF = -1;
32    public final static int UNKNOWN = -2;
33
34    public final static byte CLASSBITS = (byte)0xc0;
35    public final static byte TAGBITS = 0x1f;
36
37    public int next() throws ASN1PullParserException, java.io.IOException;
38    public void prev() throws ASN1PullParserException;
39    public int getLength();
40    public int getOffset();
41    public byte[] getContent();
42    public int getInteger();
43    public int getTagNumber();
44    public byte getTagClass();
45    public byte getConsMask();
46    public void setInput(java.io.InputStream is);
47    public void printParsed(java.io.PrintStream ps) throws java.io.IOException, ASN1PullParserException;
48}