Class DG5File

    • Constructor Detail

      • DG5File

        public DG5File​(java.util.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​(java.io.InputStream inputStream)
                throws java.io.IOException
        Constructs a new file from binary representation.
        Parameters:
        inputStream - an input stream
        Throws:
        java.io.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