Code example for File

Methods: getPath, listFiles

0
	} 
 
	@Override 
	public Object query()
	{ 
		File file = mLimiter == null ? new File("/") : (File)mLimiter.data;
 
		if (mFileObserver == null) {
			mFileObserver = new Observer(file.getPath());
		} 
 
		File[] files = file.listFiles(mFileFilter);
		if (files != null)
			Arrays.sort(files, mFileComparator);
		return files;
	} 
 
	@Override 
	public void commitQuery(Object data)
	{ 
		mFiles = (File[])data;