public File(java.net.URI uri) { if (null == uri) { throw new java.lang.NullPointerException(); } throw new java.lang.UnsupportedOperationException("Not yet implemented"); }
/// <summary>This method throws a java.lang.IllegalArgumentException if something is suspect.</summary> protected void checkUriPreConditions(java.net.URI toCkeck) { switch (toCkeck.getScheme().ToLower()) { case "file": break; case "": break; } throw new java.lang.IllegalArgumentException(String.Format("URI with scheme {0} not supported.", toCkeck.getScheme())); }
public override java.nio.file.FileSystem getFileSystem(java.net.URI uri) { // javadoc says the default file system doesn't check permissions this.checkUriPreConditions(uri); java.nio.file.FileSystem result = this.internalCacheToKeepTrackOfFileSystemsCreatedByThisProvider.get(uri); if (null == result) { throw new java.nio.file.FileSystemNotFoundException("no file system for URI " + uri); } return(result); }
public override java.nio.file.FileSystem getFileSystem(java.net.URI uri, java.util.Map <String, Object> env) { this.checkUriPreConditions(uri); if (this.internalCacheToKeepTrackOfFileSystemsCreatedByThisProvider.containsKey(uri)) { throw new java.nio.file.FileSystemAlreadyExistsException(uri.toString()); } DefaultFileSystem result = new DefaultFileSystem(uri); this.internalCacheToKeepTrackOfFileSystemsCreatedByThisProvider.put(uri, result); return(result); }
public DefaultFileSystem(java.net.URI newURI) { this.uri = newURI; }
internal DefaultFileSystem() { this.uri = new java.net.URI("file:///" + java.lang.SystemJ.getProperty("user.dir")); }
public abstract java.nio.file.FileSystem getFileSystem(java.net.URI uri);
public abstract java.nio.file.FileSystem getFileSystem(java.net.URI uri, java.util.Map <String, Object> env);
public DefaultPath(java.net.URI defaultURI) { this.uri = defaultURI; }