Class DG5File

    • Constructor Detail

      • DG5File

        public DG5File​(List<DisplayedImageInfo> images)
        Constructs a new file from a list of displayed images.
        Parameters:
        images - the displayed images, all of which should be of type Portrait
      • DG5File

        public DG5File​(InputStream inputStream)
                throws IOException
        Constructs a new file from binary representation.
        Parameters:
        inputStream - an input stream
        Throws:
        IOException - on error reading input stream
    • Method Detail

      • 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