// 
// Decompiled by Procyon v0.6.0
// 

package org.bouncycastle.oer;

import java.io.IOException;
import java.io.InputStream;
import java.io.ByteArrayInputStream;
import org.bouncycastle.asn1.ASN1Encodable;

public class OERDecoder
{
    public static ASN1Encodable decode(final byte[] buf, final Element element) throws IOException {
        return decode(new ByteArrayInputStream(buf), element);
    }
    
    public static ASN1Encodable decode(final InputStream inputStream, final Element element) throws IOException {
        return new OERInputStream(inputStream).parse(element);
    }
}
