Ejemplo n.º 1
0
 public File(java.net.URI uri)
 {
     if (null == uri)
     {
         throw new java.lang.NullPointerException();
     }
     throw new java.lang.UnsupportedOperationException("Not yet implemented");
 }
Ejemplo n.º 2
0
        /// <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()));
        }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
 public DefaultFileSystem(java.net.URI newURI)
 {
     this.uri = newURI;
 }
Ejemplo n.º 6
0
 internal DefaultFileSystem()
 {
     this.uri = new java.net.URI("file:///" + java.lang.SystemJ.getProperty("user.dir"));
 }
Ejemplo n.º 7
0
 public abstract java.nio.file.FileSystem getFileSystem(java.net.URI uri);
Ejemplo n.º 8
0
 public abstract java.nio.file.FileSystem getFileSystem(java.net.URI uri, java.util.Map <String, Object> env);
Ejemplo n.º 9
0
 public DefaultPath(java.net.URI defaultURI)
 {
     this.uri = defaultURI;
 }