예제 #1
0
파일: File.cs 프로젝트: bastie/NetVampire
 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);
        }
예제 #5
0
 public DefaultFileSystem(java.net.URI newURI)
 {
     this.uri = newURI;
 }
예제 #6
0
 internal DefaultFileSystem()
 {
     this.uri = new java.net.URI("file:///" + java.lang.SystemJ.getProperty("user.dir"));
 }
예제 #7
0
 public abstract java.nio.file.FileSystem getFileSystem(java.net.URI uri);
예제 #8
0
 public abstract java.nio.file.FileSystem getFileSystem(java.net.URI uri, java.util.Map <String, Object> env);
예제 #9
0
 public DefaultPath(java.net.URI defaultURI)
 {
     this.uri = defaultURI;
 }