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

java.lang.Objectcom.flexstor.common.io.xfile.unc.UncFile
- All Implemented Interfaces:
- com.flexstor.common.io.xfile.FlexXFileI
- public class UncFile
- extends java.lang.Object
- implements com.flexstor.common.io.xfile.FlexXFileI
- extends java.lang.Object
| Field Summary | |
private boolean |
bIsUNC
|
private java.io.File |
javaFile
|
private java.lang.String |
server
|
private java.lang.String |
sLocalPath
|
private java.lang.String |
sSeparator
|
| Constructor Summary | |
UncFile(com.flexstor.common.io.xfile.FlexXFile file,
java.lang.String str)
|
|
UncFile(java.lang.String str)
|
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
sSeparator
private java.lang.String sSeparator
bIsUNC
private boolean bIsUNC
server
private java.lang.String server
sLocalPath
private java.lang.String sLocalPath
javaFile
private java.io.File javaFile
| Constructor Detail |
UncFile
public UncFile(com.flexstor.common.io.xfile.FlexXFile file, java.lang.String str)
UncFile
public UncFile(java.lang.String str)
| Method Detail |
setFlags
private void setFlags(java.lang.String loc)
- Sets the UNC and separator flags
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
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
getFileSystemName
public java.lang.String getFileSystemName()
- Specified by:
getFileSystemNamein interfacecom.flexstor.common.io.xfile.FlexXFileI
getAbsolutePath
public java.lang.String getAbsolutePath()
- Specified by:
getAbsolutePathin interfacecom.flexstor.common.io.xfile.FlexXFileI
getParent
public java.lang.String getParent()
- Specified by:
getParentin interfacecom.flexstor.common.io.xfile.FlexXFileI
getPath
public java.lang.String getPath()
- Specified by:
getPathin interfacecom.flexstor.common.io.xfile.FlexXFileI
getLocalParent
public java.lang.String getLocalParent()
- Specified by:
getLocalParentin interfacecom.flexstor.common.io.xfile.FlexXFileI
getLocalPath
public java.lang.String getLocalPath()
- Specified by:
getLocalPathin interfacecom.flexstor.common.io.xfile.FlexXFileI
getUNCPath
public java.lang.String getUNCPath()
- Specified by:
getUNCPathin interfacecom.flexstor.common.io.xfile.FlexXFileI
getLocalUNCPath
public java.lang.String getLocalUNCPath()
- Specified by:
getLocalUNCPathin interfacecom.flexstor.common.io.xfile.FlexXFileI
getServer
public java.lang.String getServer()
- Specified by:
getServerin interfacecom.flexstor.common.io.xfile.FlexXFileI
isLocalPath
public boolean isLocalPath()
- Specified by:
isLocalPathin 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
renameTo
public boolean renameTo(com.flexstor.common.io.xfile.FlexXFileI xFile)
- Specified by:
renameToin 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
delete
public boolean delete()
- Specified by:
deletein interfacecom.flexstor.common.io.xfile.FlexXFileI
exists
public boolean exists()
- Specified by:
existsin interfacecom.flexstor.common.io.xfile.FlexXFileI
getName
public java.lang.String getName()
- Specified by:
getNamein interfacecom.flexstor.common.io.xfile.FlexXFileI
isAbsolute
public boolean isAbsolute()
- Specified by:
isAbsolutein 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
length
public long length()
- Specified by:
lengthin 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
lastModified
public long lastModified()
- Specified by:
lastModifiedin interfacecom.flexstor.common.io.xfile.FlexXFileI
adjustSeparator
private java.lang.String adjustSeparator(java.lang.String sIn)
- When methods which return a path are called
this method makes sure that the file separator
returned in the path is the same as the original
path used to create the object. Without this logic
the paths returned will have the OS's file separator
which may not always match what was used to create the object
IE: under windows forward slashes may be used to create a file object
but backslashes will be returned in paths
getFileSeparator
public java.lang.String getFileSeparator()
- Specified by:
getFileSeparatorin interfacecom.flexstor.common.io.xfile.FlexXFileI
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 >> [ unc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.flexstor.common.io.xfile.unc.UncFile