Class ASN1InputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Iterable<ASN1Object>

    public class ASN1InputStream
    extends java.io.FilterInputStream
    implements java.lang.Iterable<ASN1Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private ASN1Decoder decoder  
      private static org.slf4j.Logger logger  
      • Fields inherited from class java.io.FilterInputStream

        in
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<ASN1Object> iterator()  
      int readLength()  
      <T extends ASN1Object>
      T
      readObject()  
      ASN1Tag readTag()  
      byte[] readValue​(int length)  
      • Methods inherited from class java.io.FilterInputStream

        available, close, mark, markSupported, read, read, read, reset, skip
      • Methods inherited from class java.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Field Detail

      • logger

        private static final org.slf4j.Logger logger
    • Constructor Detail

      • ASN1InputStream

        public ASN1InputStream​(ASN1Decoder decoder,
                               java.io.InputStream wrapped)
      • ASN1InputStream

        public ASN1InputStream​(ASN1Decoder decoder,
                               byte[] value)
    • Method Detail

      • readObject

        public <T extends ASN1Object> T readObject()
      • readValue

        public byte[] readValue​(int length)
      • iterator

        public java.util.Iterator<ASN1Object> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<ASN1Object>
      • readTag

        public ASN1Tag readTag()
      • readLength

        public int readLength()