Interface File

    • Method Detail

      • getData

        byte[] getData()
        Get the file's data as a byte array.
        Returns:
        the byte data of the file
      • setData

        void setData​(byte[] data)
        Set the file's data as a byte array.
        Parameters:
        data - the byte data for the file
      • getText

        java.lang.String getText()
        Returns the file's data in form of a String.
        Returns:
      • getFileSize

        java.lang.Long getFileSize()
        Similar to calling {@link #getData().length} but will execute much faster and take much less memory.
        Returns:
      • getDimensions

        ImageDimensions getDimensions()
        Returns:
        returns an ImageDimensions representing the height and width of an image file. This method can return null if image dimensions are not applicable for the file or if the image file does not have any dimensions populated.