Java Doc for LocalFile.java in » Library » Apache-commons-vfs-20070724-src » org » apache » commons » vfs » provider » local » 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.local
Source Cross Reference
Class Diagram
Java Document (Java Doc)
java.lang
.Object
org.apache.commons.vfs.provider
.AbstractFileObject
org.apache.commons.vfs.provider.local
.LocalFile
LocalFile
public
class LocalFile extends
AbstractFileObject
implements
FileObject
(Code)
A file object implementation which uses direct file access.
author:
Adam Murdoch
author:
Gary D. Gregory
version:
$Revision: 488989 $ $Date: 2006-12-20 01:14:53 -0800 (Wed, 20 Dec 2006) $
Constructor Summary
protected
LocalFile
(
LocalFileSystem
fileSystem,
String
rootFile,
FileName
name)
Creates a non-root file.
Method Summary
protected
void
doAttach
()
Attaches this file object to its file resource.
protected
void
doCreateFolder
()
Creates this folder.
protected
void
doDelete
()
Deletes this file, and all children.
protected
long
doGetContentSize
()
Returns the size of the file content (in bytes).
protected
InputStream
doGetInputStream
()
Creates an input stream to read the content from.
protected
long
doGetLastModifiedTime
()
Gets the last modified time of this file.
protected
OutputStream
doGetOutputStream
(boolean bAppend)
Creates an output stream to write the file content to.
protected
RandomAccessContent
doGetRandomAccessContent
(
RandomAccessMode
mode)
protected
FileType
doGetType
()
Returns the file's type.
protected
boolean
doIsHidden
()
Determines if this file is hidden.
protected
boolean
doIsReadable
()
Determines if this file can be read.
protected
boolean
doIsSameFile
(
FileObject
destFile)
protected
boolean
doIsWriteable
()
Determines if this file can be written to.
protected
String
[]
doListChildren
()
Returns the children of the file.
protected
void
doRename
(
FileObject
newfile)
protected
boolean
doSetLastModTime
(long modtime)
Sets the last modified time of this file.
protected
File
getLocalFile
()
Returns the local file that this file object represents.
Constructor Detail
LocalFile
protected
LocalFile(
LocalFileSystem
fileSystem,
String
rootFile,
FileName
name) throws
FileSystemException
(Code)
Creates a non-root file.
Method Detail
doAttach
protected
void doAttach() throws
Exception
(Code)
Attaches this file object to its file resource.
doCreateFolder
protected
void doCreateFolder() throws
Exception
(Code)
Creates this folder.
doDelete
protected
void doDelete() throws
Exception
(Code)
Deletes this file, and all children.
doGetContentSize
protected
long doGetContentSize() throws
Exception
(Code)
Returns the size of the file content (in bytes).
doGetInputStream
protected
InputStream
doGetInputStream() throws
Exception
(Code)
Creates an input stream to read the content from.
doGetLastModifiedTime
protected
long doGetLastModifiedTime() throws
FileSystemException
(Code)
Gets the last modified time of this file.
doGetOutputStream
protected
OutputStream
doGetOutputStream(boolean bAppend) throws
Exception
(Code)
Creates an output stream to write the file content to.
doGetRandomAccessContent
protected
RandomAccessContent
doGetRandomAccessContent(
RandomAccessMode
mode) throws
Exception
(Code)
doGetType
protected
FileType
doGetType() throws
Exception
(Code)
Returns the file's type.
doIsHidden
protected
boolean doIsHidden()
(Code)
Determines if this file is hidden.
doIsReadable
protected
boolean doIsReadable() throws
FileSystemException
(Code)
Determines if this file can be read.
doIsSameFile
protected
boolean doIsSameFile(
FileObject
destFile) throws
FileSystemException
(Code)
doIsWriteable
protected
boolean doIsWriteable() throws
FileSystemException
(Code)
Determines if this file can be written to.
doListChildren
protected
String
[] doListChildren() throws
Exception
(Code)
Returns the children of the file.
doRename
protected
void doRename(
FileObject
newfile) throws
Exception
(Code)
rename this file
doSetLastModTime
protected
boolean doSetLastModTime(long modtime) throws
FileSystemException
(Code)
Sets the last modified time of this file.
getLocalFile
protected
File
getLocalFile()
(Code)
Returns the local file that this file object represents.
Methods inherited from
org.apache.commons.vfs.provider.AbstractFileObject
public
boolean canRenameTo(
FileObject
newfile)
(Code)
(Java Doc)
protected
void childrenChanged() throws
Exception
(Code)
(Java Doc)
protected
void childrenChanged(
FileName
childName,
FileType
newType) throws
Exception
(Code)
(Java Doc)
public
void close() throws
FileSystemException
(Code)
(Java Doc)
public
void copyFrom(
FileObject
file,
FileSelector
selector) throws
FileSystemException
(Code)
(Java Doc)
public
void createFile() throws
FileSystemException
(Code)
(Java Doc)
public
void createFolder() throws
FileSystemException
(Code)
(Java Doc)
public
boolean delete() throws
FileSystemException
(Code)
(Java Doc)
public
int delete(
FileSelector
selector) throws
FileSystemException
(Code)
(Java Doc)
protected
void doAttach() throws
Exception
(Code)
(Java Doc)
protected
FileContent
doCreateFileContent() throws
FileSystemException
(Code)
(Java Doc)
protected
void doCreateFolder() throws
Exception
(Code)
(Java Doc)
protected
void doDelete() throws
Exception
(Code)
(Java Doc)
protected
void doDetach() throws
Exception
(Code)
(Java Doc)
protected
Map
doGetAttributes() throws
Exception
(Code)
(Java Doc)
protected
Certificate
[] doGetCertificates() throws
Exception
(Code)
(Java Doc)
abstract
protected
long doGetContentSize() throws
Exception
(Code)
(Java Doc)
abstract
protected
InputStream
doGetInputStream() throws
Exception
(Code)
(Java Doc)
protected
long doGetLastModifiedTime() throws
Exception
(Code)
(Java Doc)
protected
OutputStream
doGetOutputStream(boolean bAppend) throws
Exception
(Code)
(Java Doc)
protected
RandomAccessContent
doGetRandomAccessContent(
RandomAccessMode
mode) throws
Exception
(Code)
(Java Doc)
abstract
protected
FileType
doGetType() throws
Exception
(Code)
(Java Doc)
protected
boolean doIsHidden() throws
Exception
(Code)
(Java Doc)
protected
boolean doIsReadable() throws
Exception
(Code)
(Java Doc)
protected
boolean doIsSameFile(
FileObject
destFile) throws
FileSystemException
(Code)
(Java Doc)
protected
boolean doIsWriteable() throws
Exception
(Code)
(Java Doc)
abstract
protected
String
[] doListChildren() throws
Exception
(Code)
(Java Doc)
protected
FileObject
[] doListChildrenResolved() throws
Exception
(Code)
(Java Doc)
protected
void doRemoveAttribute(
String
atttrName) throws
Exception
(Code)
(Java Doc)
protected
void doRename(
FileObject
newfile) throws
Exception
(Code)
(Java Doc)
protected
void doSetAttribute(
String
atttrName,
Object
value) throws
Exception
(Code)
(Java Doc)
protected
boolean doSetLastModTime(long modtime) throws
Exception
(Code)
(Java Doc)
protected
void doSetLastModifiedTime(long modtime) throws
Exception
(Code)
(Java Doc)
protected
void endOutput() throws
Exception
(Code)
(Java Doc)
public
boolean exists() throws
FileSystemException
(Code)
(Java Doc)
protected
void finalize() throws
Throwable
(Code)
(Java Doc)
public
FileObject
[] findFiles(
FileSelector
selector) throws
FileSystemException
(Code)
(Java Doc)
public
void findFiles(
FileSelector
selector, boolean depthwise,
List
selected) throws
FileSystemException
(Code)
(Java Doc)
public
FileObject
getChild(
String
name) throws
FileSystemException
(Code)
(Java Doc)
public
FileObject
[] getChildren() throws
FileSystemException
(Code)
(Java Doc)
public
FileContent
getContent() throws
FileSystemException
(Code)
(Java Doc)
protected
FileContentInfoFactory
getFileContentInfoFactory()
(Code)
(Java Doc)
public
FileOperations
getFileOperations() throws
FileSystemException
(Code)
(Java Doc)
public
FileSystem
getFileSystem()
(Code)
(Java Doc)
public
InputStream
getInputStream() throws
FileSystemException
(Code)
(Java Doc)
public
FileName
getName()
(Code)
(Java Doc)
public
OutputStream
getOutputStream() throws
FileSystemException
(Code)
(Java Doc)
public
OutputStream
getOutputStream(boolean bAppend) throws
FileSystemException
(Code)
(Java Doc)
public
FileObject
getParent() throws
FileSystemException
(Code)
(Java Doc)
public
RandomAccessContent
getRandomAccessContent(
RandomAccessMode
mode) throws
FileSystemException
(Code)
(Java Doc)
public
FileType
getType() throws
FileSystemException
(Code)
(Java Doc)
public
URL
getURL() throws
FileSystemException
(Code)
(Java Doc)
protected
void handleChanged() throws
Exception
(Code)
(Java Doc)
protected
void handleCreate(
FileType
newType) throws
Exception
(Code)
(Java Doc)
protected
void handleDelete() throws
Exception
(Code)
(Java Doc)
public
void holdObject(
Object
strongRef)
(Code)
(Java Doc)
protected
void injectType(
FileType
fileType)
(Code)
(Java Doc)
public
boolean isAttached()
(Code)
(Java Doc)
public
boolean isContentOpen()
(Code)
(Java Doc)
public
boolean isHidden() throws
FileSystemException
(Code)
(Java Doc)
public
boolean isReadable() throws
FileSystemException
(Code)
(Java Doc)
protected
boolean isSameFile(
FileObject
destFile) throws
FileSystemException
(Code)
(Java Doc)
public
boolean isWriteable() throws
FileSystemException
(Code)
(Java Doc)
public
void moveTo(
FileObject
destFile) throws
FileSystemException
(Code)
(Java Doc)
protected
void notifyAllStreamsClosed()
(Code)
(Java Doc)
protected
void onChange() throws
Exception
(Code)
(Java Doc)
protected
void onChildrenChanged(
FileName
child,
FileType
newType) throws
Exception
(Code)
(Java Doc)
public
void refresh() throws
FileSystemException
(Code)
(Java Doc)
public
FileObject
resolveFile(
String
name,
NameScope
scope) throws
FileSystemException
(Code)
(Java Doc)
public
FileObject
resolveFile(
String
path) throws
FileSystemException
(Code)
(Java Doc)
public
String
toString()
(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.