Better output for GVFS sysinfo

This commit is contained in:
Reinhard Pointner 2017-03-23 23:23:20 +08:00
parent 1ac332e4a2
commit d1927cd52d
2 changed files with 10 additions and 0 deletions

View File

@ -28,4 +28,9 @@ public class NativeGVFS implements GVFS {
} }
} }
@Override
public String toString() {
return String.format("%s [%s]", getClass().getSimpleName(), lib_gio);
}
} }

View File

@ -20,6 +20,11 @@ public class PlatformGVFS implements GVFS {
return Protocol.forName(uri.getScheme()).getFile(gvfs, uri); return Protocol.forName(uri.getScheme()).getFile(gvfs, uri);
} }
@Override
public String toString() {
return String.format("%s [%s]", getClass().getSimpleName(), gvfs);
}
public static enum Protocol { public static enum Protocol {
FILE { FILE {