Package org.jmrtd.lds

Class DataGroup

    • Constructor Detail

      • DataGroup

        protected DataGroup​(int dataGroupTag)
        Constructs a data group. This constructor is only visible to the other classes in this package.
        Parameters:
        dataGroupTag - data group tag
      • DataGroup

        protected DataGroup​(int dataGroupTag,
                            InputStream inputStream)
                     throws IOException
        Constructs a data group from the DER encoded data in the given input stream. Tag and length are read, so the input stream is positioned just before the value.
        Parameters:
        dataGroupTag - data group tag
        inputStream - an input stream
        Throws:
        IOException - on error reading input stream
    • Method Detail

      • toString

        public String toString()
        Gets a textual representation of this file.
        Overrides:
        toString in class AbstractTaggedLDSFile
        Returns:
        a textual representation of this file
      • getEncoded

        public byte[] getEncoded()
        Returns the contents of this file as byte array, includes the ICAO tag and length.
        Specified by:
        getEncoded in interface LDSElement
        Returns:
        a byte array containing the file