@Override public FileHandle getFileHandle (String fileName, FileType type) { return new LwjglFileHandle(fileName, type); }
@Override public FileHandle external (String path) { return new LwjglFileHandle(path, FileType.External); }
@Override public FileHandle classpath (String path) { return new LwjglFileHandle(path, FileType.Classpath); }
@Override public FileHandle absolute (String path) { return new LwjglFileHandle(path, FileType.Absolute); }
@Override public FileHandle classpath (String path) { return new LwjglFileHandle(path, FileType.Classpath); }
@Override public FileHandle internal (String path) { return new LwjglFileHandle(path, FileType.Internal); }
@Override public FileHandle local (String path) { return new LwjglFileHandle(path, FileType.Local); }
@Override public FileHandle internal (String path) { return new LwjglFileHandle(path, FileType.Internal); }
@Override public FileHandle external (String path) { return new LwjglFileHandle(path, FileType.External); }
@Override public FileHandle local (String path) { return new LwjglFileHandle(path, FileType.Local); }
@Override public FileHandle getFileHandle (String fileName, FileType type) { return new LwjglFileHandle(fileName, type); }
@Override public FileHandle absolute (String path) { return new LwjglFileHandle(path, FileType.Absolute); }
public FileHandle parent () { File parent = file.getParentFile(); if (parent == null) { if (type == FileType.Absolute) parent = new File("/"); else parent = new File(""); } return new LwjglFileHandle(parent, type); }
public FileHandle parent () { File parent = file.getParentFile(); if (parent == null) { if (type == FileType.Absolute) parent = new File("/"); else parent = new File(""); } return new LwjglFileHandle(parent, type); }
public FileHandle child (String name) { if (file.getPath().length() == 0) return new LwjglFileHandle(new File(name), type); return new LwjglFileHandle(new File(file, name), type); }
public FileHandle child (String name) { if (file.getPath().length() == 0) return new LwjglFileHandle(new File(name), type); return new LwjglFileHandle(new File(file, name), type); }
public FileHandle sibling (String name) { if (file.getPath().length() == 0) throw new GdxRuntimeException("Cannot get the sibling of the root."); return new LwjglFileHandle(new File(file.getParent(), name), type); }
public FileHandle sibling (String name) { if (file.getPath().length() == 0) throw new GdxRuntimeException("Cannot get the sibling of the root."); return new LwjglFileHandle(new File(file.getParent(), name), type); }
@Override public Preferences getPreferences (String name) { if (preferences.containsKey(name)) { return preferences.get(name); } else { Preferences prefs = new LwjglPreferences(new LwjglFileHandle(new File(preferencesdir, name), preferencesFileType)); preferences.put(name, prefs); return prefs; } }
@Override public Preferences getPreferences (String name) { if (preferences.containsKey(name)) { return preferences.get(name); } else { Preferences prefs = new LwjglPreferences(new LwjglFileHandle(new File(preferencesdir, name), preferencesFileType)); preferences.put(name, prefs); return prefs; } }