Java Doc for AbstractFileSystem.java in » Library » Apache-commons-vfs-20070724-src » org » apache » commons » vfs » provider » Java Source Code / Java DocumentationJava Source Code and Java Documentation
Java Source Code / Java Documentation
1.
6.0 JDK Core
2.
6.0 JDK Modules
3.
6.0 JDK Modules com.sun
4.
6.0 JDK Modules com.sun.java
5.
6.0 JDK Modules sun
6.
6.0 JDK Platform
7.
Ajax
8.
Apache Harmony Java SE
9.
Aspect oriented
10.
Authentication Authorization
11.
Blogger System
12.
Build
13.
Byte Code
14.
Cache
15.
Chart
16.
Chat
17.
Code Analyzer
18.
Collaboration
19.
Content Management System
20.
Database Client
21.
Database DBMS
22.
Database JDBC Connection Pool
23.
Database ORM
24.
Development
25.
EJB Server geronimo
26.
EJB Server GlassFish
27.
EJB Server JBoss 4.2.1
28.
EJB Server resin 3.1.5
29.
ERP CRM Financial
30.
ESB
31.
Forum
32.
GIS
33.
Graphic Library
34.
Groupware
35.
HTML Parser
36.
IDE
37.
IDE Eclipse
38.
IDE Netbeans
39.
Installer
40.
Internationalization Localization
41.
Inversion of Control
42.
Issue Tracking
43.
J2EE
44.
JBoss
45.
JMS
46.
JMX
47.
Library
48.
Mail Clients
49.
Net
50.
Parser
51.
PDF
52.
Portal
53.
Profiler
54.
Project Management
55.
Report
56.
RSS RDF
57.
Rule Engine
58.
Science
59.
Scripting
60.
Search Engine
61.
Security
62.
Sevlet Container
63.
Source Control
64.
Swing Library
65.
Template Engine
66.
Test Coverage
67.
Testing
68.
UML
69.
Web Crawler
70.
Web Framework
71.
Web Mail
72.
Web Server
73.
Web Services
74.
Web Services apache cxf 2.0.1
75.
Web Services AXIS2
76.
Wiki Engine
77.
Workflow Engines
78.
XML
79.
XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation
»
Library
»
Apache commons vfs 20070724 src
»
org.apache.commons.vfs.provider
Source Cross Reference
Class Diagram
Java Document (Java Doc)
java.lang
.Object
org.apache.commons.vfs.provider
.AbstractVfsComponent
org.apache.commons.vfs.provider
.AbstractFileSystem
All known Subclasses:
org.apache.commons.vfs.provider.url
.UrlFileSystem
,
org.apache.commons.vfs.provider.tar
.TarFileSystem
,
org.apache.commons.vfs.provider.ram
.RamFileSystem
,
org.apache.commons.vfs.provider.zip
.ZipFileSystem
,
org.apache.commons.vfs.provider.sftp
.SftpFileSystem
,
org.apache.commons.vfs.provider.local
.LocalFileSystem
,
org.apache.commons.vfs.provider.http
.HttpFileSystem
,
org.apache.commons.vfs.impl
.VirtualFileSystem
,
org.apache.commons.vfs.provider.ftp
.FtpFileSystem
,
org.apache.commons.vfs.provider.compressed
.CompressedFileFileSystem
,
AbstractFileSystem
abstract
public
class AbstractFileSystem extends
AbstractVfsComponent
implements
FileSystem
(Code)
A partial
org.apache.commons.vfs.FileSystem
implementation.
author:
Adam Murdoch
version:
$Revision: 520070 $ $Date: 2007-03-19 12:47:13 -0700 (Mon, 19 Mar 2007) $
Constructor Summary
protected
AbstractFileSystem
(
FileName
rootName,
FileObject
parentLayer,
FileSystemOptions
fileSystemOptions)
Method Summary
abstract
protected
void
addCapabilities
(
Collection
caps)
Adds the capabilities of this file system.
public
void
addJunction
(
String
junctionPoint,
FileObject
targetFile)
Adds a junction to this file system.
public
void
addListener
(
FileObject
file,
FileListener
listener)
Adds a listener on a file in this file system.
public
void
close
()
Closes this component.
public
void
closeCommunicationLink
()
abstract
protected
FileObject
createFile
(
FileName
name)
Creates a file object.
protected
FileObject
decorateFileObject
(
FileObject
file)
protected
void
doCloseCommunicationLink
()
protected
File
doReplicateFile
(
FileObject
file,
FileSelector
selector)
Creates a temporary local copy of a file and its descendents.
void
fileObjectDestroyed
(
FileObject
fileObject)
void
fileObjectHanded
(
FileObject
fileObject)
public
void
fireFileChanged
(
FileObject
file)
Fires a file changed event.
public
void
fireFileCreated
(
FileObject
file)
Fires a file create event.
public
void
fireFileDeleted
(
FileObject
file)
Fires a file delete event.
void
freeResources
()
public
Object
getAttribute
(
String
attrName)
Retrieves the attribute with the specified name.
FileSystemKey
getCacheKey
()
protected
FileObject
getFileFromCache
(
FileName
name)
Returns a cached file.
public
FileSystemManager
getFileSystemManager
()
public
FileSystemOptions
getFileSystemOptions
()
public
double
getLastModTimeAccuracy
()
Returns the accuracy of the last modification time ms 0 perfectly accurate, >0 might be off by this value e.g.
public
FileObject
getParentLayer
()
Returns the parent layer if this is a layered file system.
public
FileObject
getRoot
()
Returns the root file of this file system.
public
FileName
getRootName
()
Returns the name of the root of this file system.
public
boolean
hasCapability
(
Capability
capability)
Determines if this file system has a particular capability.
public
void
init
()
Initialises this component.
public
boolean
isOpen
()
public
boolean
isReleaseable
()
protected
void
notifyAllStreamsClosed
()
will be called after all file-objects closed their streams.
protected
void
putFileToCache
(
FileObject
file)
Adds a file object to the cache.
protected
void
removeFileFromCache
(
FileName
name)
remove a cached file.
public
void
removeJunction
(
String
junctionPoint)
Removes a junction from this file system.
public
void
removeListener
(
FileObject
file,
FileListener
listener)
Removes a listener from a file in this file system.
public
File
replicateFile
(
FileObject
file,
FileSelector
selector)
Creates a temporary local copy of a file and its descendents.
public
FileObject
resolveFile
(
String
nameStr)
Finds a file in this file system.
public
synchronized
FileObject
resolveFile
(
FileName
name)
Finds a file in this file system.
public
void
setAttribute
(
String
attrName,
Object
value)
Sets the attribute with the specified name.
void
setCacheKey
(
FileSystemKey
cacheKey)
void
streamClosed
()
void
streamOpened
()
Constructor Detail
AbstractFileSystem
protected
AbstractFileSystem(
FileName
rootName,
FileObject
parentLayer,
FileSystemOptions
fileSystemOptions)
(Code)
Method Detail
addCapabilities
abstract
protected
void addCapabilities(
Collection
caps)
(Code)
Adds the capabilities of this file system.
addJunction
public
void addJunction(
String
junctionPoint,
FileObject
targetFile) throws
FileSystemException
(Code)
Adds a junction to this file system.
addListener
public
void addListener(
FileObject
file,
FileListener
listener)
(Code)
Adds a listener on a file in this file system.
close
public
void close()
(Code)
Closes this component.
closeCommunicationLink
public
void closeCommunicationLink()
(Code)
Close the underlaying link used to access the files
createFile
abstract
protected
FileObject
createFile(
FileName
name) throws
Exception
(Code)
Creates a file object. This method is called only if the requested file is not cached.
decorateFileObject
protected
FileObject
decorateFileObject(
FileObject
file) throws
FileSystemException
(Code)
doCloseCommunicationLink
protected
void doCloseCommunicationLink()
(Code)
Close the underlaying link used to access the files
doReplicateFile
protected
File
doReplicateFile(
FileObject
file,
FileSelector
selector) throws
Exception
(Code)
Creates a temporary local copy of a file and its descendents.
fileObjectDestroyed
void fileObjectDestroyed(
FileObject
fileObject)
(Code)
fileObjectHanded
void fileObjectHanded(
FileObject
fileObject)
(Code)
fireFileChanged
public
void fireFileChanged(
FileObject
file)
(Code)
Fires a file changed event.
This will only happen if you monitor the file using
org.apache.commons.vfs.FileMonitor
.
fireFileCreated
public
void fireFileCreated(
FileObject
file)
(Code)
Fires a file create event.
fireFileDeleted
public
void fireFileDeleted(
FileObject
file)
(Code)
Fires a file delete event.
freeResources
void freeResources()
(Code)
getAttribute
public
Object
getAttribute(
String
attrName) throws
FileSystemException
(Code)
Retrieves the attribute with the specified name. The default implementation simply throws an exception.
getCacheKey
FileSystemKey
getCacheKey()
(Code)
getFileFromCache
protected
FileObject
getFileFromCache(
FileName
name)
(Code)
Returns a cached file.
getFileSystemManager
public
FileSystemManager
getFileSystemManager()
(Code)
Return the FileSystemManager used to instantiate this filesystem
getFileSystemOptions
public
FileSystemOptions
getFileSystemOptions()
(Code)
Return the FileSystemOptions used to instantiate this filesystem
getLastModTimeAccuracy
public
double getLastModTimeAccuracy()
(Code)
Returns the accuracy of the last modification time ms 0 perfectly accurate, >0 might be off by this value e.g. sftp 1000ms
getParentLayer
public
FileObject
getParentLayer() throws
FileSystemException
(Code)
Returns the parent layer if this is a layered file system.
getRoot
public
FileObject
getRoot() throws
FileSystemException
(Code)
Returns the root file of this file system.
getRootName
public
FileName
getRootName()
(Code)
Returns the name of the root of this file system.
hasCapability
public
boolean hasCapability(
Capability
capability)
(Code)
Determines if this file system has a particular capability.
init
public
void init() throws
FileSystemException
(Code)
Initialises this component.
isOpen
public
boolean isOpen()
(Code)
check if this filesystem has open streams
isReleaseable
public
boolean isReleaseable()
(Code)
returns true if no file is using this filesystem
notifyAllStreamsClosed
protected
void notifyAllStreamsClosed()
(Code)
will be called after all file-objects closed their streams.
putFileToCache
protected
void putFileToCache(
FileObject
file)
(Code)
Adds a file object to the cache.
removeFileFromCache
protected
void removeFileFromCache(
FileName
name)
(Code)
remove a cached file.
removeJunction
public
void removeJunction(
String
junctionPoint) throws
FileSystemException
(Code)
Removes a junction from this file system.
removeListener
public
void removeListener(
FileObject
file,
FileListener
listener)
(Code)
Removes a listener from a file in this file system.
replicateFile
public
File
replicateFile(
FileObject
file,
FileSelector
selector) throws
FileSystemException
(Code)
Creates a temporary local copy of a file and its descendents.
resolveFile
public
FileObject
resolveFile(
String
nameStr) throws
FileSystemException
(Code)
Finds a file in this file system.
resolveFile
public
synchronized
FileObject
resolveFile(
FileName
name) throws
FileSystemException
(Code)
Finds a file in this file system.
setAttribute
public
void setAttribute(
String
attrName,
Object
value) throws
FileSystemException
(Code)
Sets the attribute with the specified name. The default implementation simply throws an exception.
setCacheKey
void setCacheKey(
FileSystemKey
cacheKey)
(Code)
streamClosed
void streamClosed()
(Code)
streamOpened
void streamOpened()
(Code)
Methods inherited from
org.apache.commons.vfs.provider.AbstractVfsComponent
public
void close()
(Code)
(Java Doc)
final
protected
VfsComponentContext
getContext()
(Code)
(Java Doc)
final
protected
Log getLogger()
(Code)
(Java Doc)
public
void init() throws
FileSystemException
(Code)
(Java Doc)
final
public
void setContext(
VfsComponentContext
context)
(Code)
(Java Doc)
final
public
void setLogger(Log log)
(Code)
(Java Doc)
Methods inherited from
java.lang.Object
native
protected
Object
clone() throws
CloneNotSupportedException
(Code)
(Java Doc)
public
boolean equals(
Object
obj)
(Code)
(Java Doc)
protected
void finalize() throws
Throwable
(Code)
(Java Doc)
final native
public
Class
> getClass()
(Code)
(Java Doc)
native
public
int hashCode()
(Code)
(Java Doc)
final native
public
void notify()
(Code)
(Java Doc)
final native
public
void notifyAll()
(Code)
(Java Doc)
public
String
toString()
(Code)
(Java Doc)
final native
public
void wait(long timeout) throws
InterruptedException
(Code)
(Java Doc)
final
public
void wait(long timeout, int nanos) throws
InterruptedException
(Code)
(Java Doc)
final
public
void wait() throws
InterruptedException
(Code)
(Java Doc)
www.java2java.com
|
Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.