use of com.badlogic.gdx.backends.gwt.GwtFileHandle in project libgdx by libgdx.
the class Preloader method list.
public FileHandle[] list(String url, String suffix) {
Array<FileHandle> files = new Array<FileHandle>();
for (String path : texts.keys()) {
if (isChild(path, url) && path.endsWith(suffix)) {
files.add(new GwtFileHandle(this, path, FileType.Internal));
}
}
FileHandle[] list = new FileHandle[files.size];
System.arraycopy(files.items, 0, list, 0, list.length);
return list;
}
use of com.badlogic.gdx.backends.gwt.GwtFileHandle in project libgdx by libgdx.
the class Preloader method list.
public FileHandle[] list(String url, FilenameFilter filter) {
Array<FileHandle> files = new Array<FileHandle>();
for (String path : texts.keys()) {
if (isChild(path, url) && filter.accept(new File(url), path.substring(url.length() + 1))) {
files.add(new GwtFileHandle(this, path, FileType.Internal));
}
}
FileHandle[] list = new FileHandle[files.size];
System.arraycopy(files.items, 0, list, 0, list.length);
return list;
}
use of com.badlogic.gdx.backends.gwt.GwtFileHandle in project libgdx by libgdx.
the class Preloader method list.
public FileHandle[] list(String url, FileFilter filter) {
Array<FileHandle> files = new Array<FileHandle>();
for (String path : texts.keys()) {
if (isChild(path, url) && filter.accept(new File(path))) {
files.add(new GwtFileHandle(this, path, FileType.Internal));
}
}
FileHandle[] list = new FileHandle[files.size];
System.arraycopy(files.items, 0, list, 0, list.length);
return list;
}
Aggregations