|
|||||||||
| Home >> All >> com >> flexstor >> common >> io >> xfile >> [ webnfs overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.flexstor.common.io.xfile.webnfs
Class WebNfsFile

java.lang.ObjectXFile
com.flexstor.common.io.xfile.webnfs.WebNfsFile
- All Implemented Interfaces:
- com.flexstor.common.io.xfile.FlexXFileI
- public class WebNfsFile
- extends XFile
- implements com.flexstor.common.io.xfile.FlexXFileI
- extends XFile
This subclass of XFile overwrites some methods which otherwise will fail if: - The protocol used is a NFS URL and the path specified is mounted from another server OR - The path contains some escape codes and special characters that must be preserved. Inside these overwriten methods we first determine if the path is a NFS URL; if it is, use the super class method; if that fails and the file is local to the JVM server we create a new XFile instance (not FlexXFile) with a local path as argument where all special characters have been replaced. David C. 03/01/00
| Field Summary | |
private boolean |
bLocalFile
|
private boolean |
bSolaris
|
private static java.lang.String |
sLocalHost
|
private java.lang.String |
sLocalPath
|
private java.lang.String |
sServer
|
| Constructor Summary | |
WebNfsFile(java.lang.String str)
|
|
WebNfsFile(XFile file,
java.lang.String str)
|
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.flexstor.common.io.xfile.FlexXFileI |
getAbsolutePath, getFileSystemName, getPath |
| Field Detail |
sServer
private java.lang.String sServer
sLocalPath
private java.lang.String sLocalPath
bSolaris
private boolean bSolaris
bLocalFile
private boolean bLocalFile
sLocalHost
private static java.lang.String sLocalHost
| Constructor Detail |
WebNfsFile
public WebNfsFile(XFile file,
java.lang.String str)
WebNfsFile
public WebNfsFile(java.lang.String str)
| Method Detail |
getBufferedInputStream
public java.io.BufferedInputStream getBufferedInputStream() throws java.io.IOException
- Specified by:
getBufferedInputStreamin interfacecom.flexstor.common.io.xfile.FlexXFileI
getBufferedInputStream
public java.io.BufferedInputStream getBufferedInputStream(int bufferSize) throws java.io.IOException
- Specified by:
getBufferedInputStreamin interfacecom.flexstor.common.io.xfile.FlexXFileI
getBufferedOutputStream
public java.io.BufferedOutputStream getBufferedOutputStream() throws java.io.IOException
- Specified by:
getBufferedOutputStreamin interfacecom.flexstor.common.io.xfile.FlexXFileI
getBufferedOutputStream
public java.io.BufferedOutputStream getBufferedOutputStream(int bufferSize) throws java.io.IOException
- Specified by:
getBufferedOutputStreamin interfacecom.flexstor.common.io.xfile.FlexXFileI
getBufferedReader
public java.io.BufferedReader getBufferedReader() throws java.io.IOException
- Specified by:
getBufferedReaderin interfacecom.flexstor.common.io.xfile.FlexXFileI
getBufferedReader
public java.io.BufferedReader getBufferedReader(int bufferSize) throws java.io.IOException
- Specified by:
getBufferedReaderin interfacecom.flexstor.common.io.xfile.FlexXFileI
getBufferedWriter
public java.io.BufferedWriter getBufferedWriter() throws java.io.IOException
- Specified by:
getBufferedWriterin interfacecom.flexstor.common.io.xfile.FlexXFileI
getBufferedWriter
public java.io.BufferedWriter getBufferedWriter(int bufferSize) throws java.io.IOException
- Specified by:
getBufferedWriterin interfacecom.flexstor.common.io.xfile.FlexXFileI
list
public java.lang.String[] list(com.flexstor.common.io.xfile.XFilenameFilterI filter)
- Specified by:
listin interfacecom.flexstor.common.io.xfile.FlexXFileI
list
public java.lang.String[] list()
- Specified by:
listin interfacecom.flexstor.common.io.xfile.FlexXFileI
mkdir
public boolean mkdir()
- Specified by:
mkdirin interfacecom.flexstor.common.io.xfile.FlexXFileI
mkdirs
public boolean mkdirs()
- Specified by:
mkdirsin interfacecom.flexstor.common.io.xfile.FlexXFileI
extendedList
public java.lang.String[] extendedList()
- Specified by:
extendedListin interfacecom.flexstor.common.io.xfile.FlexXFileI
extendedList
public java.lang.String[] extendedList(com.flexstor.common.io.xfile.XFilenameFilterI filter)
- Specified by:
extendedListin interfacecom.flexstor.common.io.xfile.FlexXFileI
getName
public java.lang.String getName()
- Specified by:
getNamein interfacecom.flexstor.common.io.xfile.FlexXFileI
getParent
public java.lang.String getParent()
- Specified by:
getParentin interfacecom.flexstor.common.io.xfile.FlexXFileI
exists
public boolean exists()
- Specified by:
existsin interfacecom.flexstor.common.io.xfile.FlexXFileI
canRead
public boolean canRead()
- Specified by:
canReadin interfacecom.flexstor.common.io.xfile.FlexXFileI
canWrite
public boolean canWrite()
- Specified by:
canWritein interfacecom.flexstor.common.io.xfile.FlexXFileI
isDirectory
public boolean isDirectory()
- Specified by:
isDirectoryin interfacecom.flexstor.common.io.xfile.FlexXFileI
isFile
public boolean isFile()
- Specified by:
isFilein interfacecom.flexstor.common.io.xfile.FlexXFileI
isAbsolute
public boolean isAbsolute()
- Specified by:
isAbsolutein interfacecom.flexstor.common.io.xfile.FlexXFileI
lastModified
public long lastModified()
- Specified by:
lastModifiedin interfacecom.flexstor.common.io.xfile.FlexXFileI
length
public long length()
- Specified by:
lengthin interfacecom.flexstor.common.io.xfile.FlexXFileI
delete
public boolean delete()
- Specified by:
deletein interfacecom.flexstor.common.io.xfile.FlexXFileI
renameTo
public boolean renameTo(com.flexstor.common.io.xfile.FlexXFileI xFile)
- Specified by:
renameToin interfacecom.flexstor.common.io.xfile.FlexXFileI
getServer
public java.lang.String getServer()
- Specified by:
getServerin interfacecom.flexstor.common.io.xfile.FlexXFileI
getLocalPath
public java.lang.String getLocalPath()
- returns the path, without the nfs://sServer portion.
- Specified by:
getLocalPathin interfacecom.flexstor.common.io.xfile.FlexXFileI
isLocalPath
public boolean isLocalPath()
- Returns true if the files resides in this server; false otherwise
- Specified by:
isLocalPathin interfacecom.flexstor.common.io.xfile.FlexXFileI
isOSSolaris
public boolean isOSSolaris()
- Returns true if the OS is Solaris
getLocalParent
public java.lang.String getLocalParent()
- Specified by:
getLocalParentin interfacecom.flexstor.common.io.xfile.FlexXFileI
getUNCPath
public java.lang.String getUNCPath()
- Returns the path of this file as a UNC (Universal Naming Convension)
e.g. \\SERVER_NAME\location\filename
- Specified by:
getUNCPathin interfacecom.flexstor.common.io.xfile.FlexXFileI
getLocalUNCPath
public java.lang.String getLocalUNCPath()
- Returns the path of this file as a UNC (Universal Naming Convension), excluding the
server name.
e.g. \location\filename
- Specified by:
getLocalUNCPathin interfacecom.flexstor.common.io.xfile.FlexXFileI
setServerAndPath
private void setServerAndPath(java.lang.String sFile)
- Set the information for the Server DNS and local path (without the nfs://server portion)
encodeURLString
protected static java.lang.String encodeURLString(java.lang.String str)
- Replace occurrencies of special characters with its %
translation Make sure to call this method before passing the file path argument to the super constructor.
getFileSeparator
public java.lang.String getFileSeparator()
- Specified by:
getFileSeparatorin interfacecom.flexstor.common.io.xfile.FlexXFileI
getFileSeparator
public static java.lang.String getFileSeparator(java.lang.String sFile)
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> com >> flexstor >> common >> io >> xfile >> [ webnfs overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
XFile