org.eclipse.scout.rt.server.services.common.file.RemoteFileService.getRemoteFiles(String, FilenameFilter, RemoteFile[], String, long)
public interface IExtRemoteFileService extends IRemoteFileService {
RemoteFile[] getRemoteFiles(String folderPath, FilenameFilter filter, RemoteFile[] existingFileInfoOnClient, String charsetName, long maxBlockSize) throws ProcessingException;
RemoteFile[] getRemoteFileHeaders(String folderPath, FilenameFilter filter, RemoteFile[] existingFileInfoOnClient, int maxCount) throws ProcessingException;
}
System.out.println("get sounds with getRemoteFileHeaders");
Calendar cal = Calendar.getInstance();
Date startTime = cal.getTime();
files = SERVICES.getService(IExtRemoteFileService.class).getRemoteFileHeaders("gramma6/sounds", new NoFilenameFilter(), null, -1);
cal = Calendar.getInstance();
Date endTime = cal.getTime();
System.out.println("time = " + (endTime.getTime() - startTime.getTime()) + " milleseconds");
System.out.println("get sounds with getRemoteFiles , blocksize = 0");
cal = Calendar.getInstance();
startTime = cal.getTime();
files = SERVICES.getService(IExtRemoteFileService.class).getRemoteFiles("gramma6/sounds", new NoFilenameFilter(), null, "UTF-8", 0);
System.out.println("Total " + files.length + " files");
cal = Calendar.getInstance();
endTime = cal.getTime();
System.out.println("time = " + (endTime.getTime() - startTime.getTime()) + " milleseconds");