Secure iNet Factory

com.jscape.inet.file
Class JavaFileSystem

java.lang.Object
  extended by com.jscape.inet.file.JavaFileSystem
All Implemented Interfaces:
JFileSystem

public final class JavaFileSystem
extends java.lang.Object
implements JFileSystem

An implementation of JFile system abstraction. Takes responsibility for corresponded JavaFile objects creation.

Version:
1.0
Author:
Natalya Okhremchuk

Method Summary
 void close()
          Doesn't have sense for this file system type.
 JFile getFile(JFile parent, java.lang.String child)
          Creates a new JavaFile instance from a parent abstract pathname and a child pathname string.
 JFile getFile(java.lang.String pathname)
          Creates a new JavaFile instanse converting the given pathname string into an abstract pathname.
static JavaFileSystem getInstance()
           
 boolean isClosed()
          Always returns false since this object cannot be closed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static JavaFileSystem getInstance()
Returns:
JavaFileSystem instance

getFile

public JFile getFile(java.lang.String pathname)
Creates a new JavaFile instanse converting the given pathname string into an abstract pathname.

Specified by:
getFile in interface JFileSystem
Parameters:
pathname - A pathname string
Returns:
A new JavaFile instance

getFile

public JFile getFile(JFile parent,
                     java.lang.String child)
Creates a new JavaFile instance from a parent abstract pathname and a child pathname string.

Specified by:
getFile in interface JFileSystem
Parameters:
parent - The parent abstract pathname
child - The child pathname string
Returns:
JavaFile object that denote this abstract pathname

close

public void close()
Doesn't have sense for this file system type.

Specified by:
close in interface JFileSystem

isClosed

public boolean isClosed()
Always returns false since this object cannot be closed.

Specified by:
isClosed in interface JFileSystem
Returns:
always false

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2014. All Rights Reserved