Logo Search packages:      
Sourcecode: bouncycastle version File versions  Download package

Dump.java

package org.bouncycastle.asn1.util;

import java.io.EOFException;
import java.io.FileInputStream;

import org.bouncycastle.asn1.BERInputStream;

00008 public class Dump
{
    public static void main(
        String args[])
        throws Exception
    {
        FileInputStream fIn = new FileInputStream(args[0]);
        BERInputStream  bIn = new BERInputStream(fIn);
        Object          obj = null;

        try
        {
            while ((obj = bIn.readObject()) != null)
            {
                System.out.println(ASN1Dump.dumpAsString(obj));
            }
        }
        catch (EOFException e)
        {
            // ignore
        }
    }
}

Generated by  Doxygen 1.6.0   Back to index