public class UrlVFS extends VFS
VFS.DirectoryEntryCompare
BROWSE_CAP, CASE_INSENSITIVE_CAP, DELETE_CAP, EA_MODIFIED, EA_SIZE, EA_STATUS, EA_TYPE, IOBUFSIZE, LOW_LATENCY_CAP, MKDIR_CAP, NON_AWT_SESSION_CAP, READ_CAP, RENAME_CAP, WRITE_CAP
Constructor and Description |
---|
UrlVFS() |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
_createInputStream(java.lang.Object session,
java.lang.String path,
boolean ignoreErrors,
java.awt.Component comp)
Creates an input stream.
|
java.io.OutputStream |
_createOutputStream(java.lang.Object session,
java.lang.String path,
java.awt.Component comp)
Creates an output stream.
|
java.lang.String |
constructPath(java.lang.String parent,
java.lang.String path)
Constructs a path from the specified directory and
file name component.
|
java.lang.String |
getFilePath(java.lang.String vfsPath)
Returns the path component of the specified VFS path.
|
_backup, _canonPath, _delete, _endVFSSession, _finishTwoStageSave, _getFile, _listDirectory, _listDirectory, _listDirectory, _listFiles, _mkdir, _rename, _saveComplete, copy, copy, copy, copy, createVFSSession, createVFSSessionSafe, getCapabilities, getDefaultColorFor, getExtendedAttributes, getFileName, getFileSeparator, getName, getParentOfPath, getTwoStageSaveName, insert, isMarkersFileSupported, load, reloadDirectory, save
public java.lang.String constructPath(java.lang.String parent, java.lang.String path)
VFS
Unless you are writing a VFS, this method should not be called
directly. To ensure correct behavior, you must call
MiscUtilities.constructPath(String,String)
instead.
constructPath
in class VFS
parent
- The parent directorypath
- The pathpublic java.io.InputStream _createInputStream(java.lang.Object session, java.lang.String path, boolean ignoreErrors, java.awt.Component comp) throws java.io.IOException
VFS
_createInputStream
in class VFS
session
- the VFS sessionpath
- The pathignoreErrors
- If true, file not found errors should be
ignoredcomp
- The component that will parent error dialog boxesnull
if there was a problemjava.io.IOException
- If an I/O error occurspublic java.io.OutputStream _createOutputStream(java.lang.Object session, java.lang.String path, java.awt.Component comp) throws java.io.IOException
VFS
_createOutputStream
in class VFS
session
- the VFS sessionpath
- The pathcomp
- The component that will parent error dialog boxesjava.io.IOException
- If an I/O error occurspublic java.lang.String getFilePath(java.lang.String vfsPath)
VFS
If a VFS implementation can have additional
information in the VFS path like username / password / host / port
for FTP VFS or archive filename for archive VFS, this
method should be overridden to remove those information also.
The easiest would be to remove those additional information
and then delegate to super.getFilePath()
.
getFilePath
in class VFS
vfsPath
- The VFS path