java.lang.Object
com.levigo.jadice.web.demo.common.client.commands.FileReader

public class FileReader extends Object
A utility class providing different utility methods for reading files via JavaScript.

There are currently two utility methods provided by this class.

  • The method getFileCount returns the number of files contained by the given JavaScript object
  • The method getFile
  • Constructor Details

    • FileReader

      public FileReader()
  • Method Details

    • getFileCount

      public static int getFileCount(Object e)
      Returns the number of files contained by the given javascript object
      Parameters:
      e - the javascript object containing the file
      Returns:
      the file count
    • getFile

      public static FileReader.FileReadResult getFile(Object e, int i)