Java Doc for VFSFile.java in  » Swing-Library » jEdit » org » gjt » sp » jedit » io » 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 » Swing Library » jEdit » org.gjt.sp.jedit.io 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.gjt.sp.jedit.io.VFSFile

VFSFile
public class VFSFile implements Serializable(Code)
A directory entry returned from a file listing.
since:
   jEdit 4.3pre2


Field Summary
final public static  intDIRECTORY
    
final public static  intFILE
    
final public static  intFILESYSTEM
    
public  booleancanRead
    
public  booleancanWrite
    
protected  Colorcolor
    
protected  booleancolorCalculated
    
public  StringdeletePath
    
public  booleanhidden
    
public  longlength
    
public  Stringname
    
public  Stringpath
    
public  StringsymlinkPath
    
public  inttype
    

Constructor Summary
public  VFSFile()
    
public  VFSFile(String name, String path, String deletePath, int type, long length, boolean hidden)
    

Method Summary
protected  voidfetchAttrs()
     Fetch some attributes of the file.
protected  booleanfetchedAttrs()
     Returns true if the attributes are already fetched.
public static  intfindCompletion(VFSFile[] files, int start, int end, String str, boolean dirsOnly)
     Return the index of a file whose name matches the given string, in a case-insensitive manner.
public static  StringfindCompletion(String path, String complete, VFSBrowser browser, boolean dirsOnly)
    
public  ColorgetColor()
     Returns the color that will be used to display the file.
final public  IcongetDefaultIcon(boolean expanded, boolean openBuffer)
     Returns the default icon for the file.
final public  IcongetDefaultIcon(boolean expanded)
     Returns the default icon of the file.
public  StringgetDeletePath()
    
public  StringgetExtendedAttribute(String name)
     Returns the value of an extended attribute.
final public  IcongetIcon(boolean expanded)
     Returns the icon for the file.
public  IcongetIcon(boolean expanded, boolean openBuffer)
     Returns the icon for the file.
public  longgetLength()
    
public  StringgetName()
    
public  StringgetPath()
    
public  StringgetSymlinkPath()
    
public  intgetType()
    
public  VFSgetVFS()
    
public  booleanisBinary(Object session)
     Check if a file is binary file.
public  booleanisHidden()
    
public  booleanisReadable()
    
public  booleanisWriteable()
    
public  voidsetDeletePath(String deletePath)
    
public  voidsetHidden(boolean hidden)
    
public  voidsetLength(long length)
    
public  voidsetName(String name)
    
public  voidsetPath(String path)
    
public  voidsetReadable(boolean canRead)
    
public  voidsetSymlinkPath(String symlinkPath)
    
public  voidsetType(int type)
    
public  voidsetWriteable(boolean canWrite)
    
public  StringtoString()
    

Field Detail
DIRECTORY
final public static int DIRECTORY(Code)



FILE
final public static int FILE(Code)



FILESYSTEM
final public static int FILESYSTEM(Code)



canRead
public boolean canRead(Code)



canWrite
public boolean canWrite(Code)



color
protected Color color(Code)



colorCalculated
protected boolean colorCalculated(Code)



deletePath
public String deletePath(Code)



hidden
public boolean hidden(Code)



length
public long length(Code)



name
public String name(Code)



path
public String path(Code)



symlinkPath
public String symlinkPath(Code)



type
public int type(Code)




Constructor Detail
VFSFile
public VFSFile()(Code)

since:
   jEdit 4.3pre2



VFSFile
public VFSFile(String name, String path, String deletePath, int type, long length, boolean hidden)(Code)




Method Detail
fetchAttrs
protected void fetchAttrs()(Code)
Fetch some attributes of the file. Some attributes are not fetched during file initialization because it takes time. They are fetched here. VFS implementation should overwrite this



fetchedAttrs
protected boolean fetchedAttrs()(Code)
Returns true if the attributes are already fetched.
See Also:   VFSFile.fetchAttrs() true if the attributes are already fetched



findCompletion
public static int findCompletion(VFSFile[] files, int start, int end, String str, boolean dirsOnly)(Code)
Return the index of a file whose name matches the given string, in a case-insensitive manner. Exact matches are preferred.
Parameters:
  files - The list of files
Parameters:
  start - The start index, inclusive
Parameters:
  end - The end index, exclusive
Parameters:
  str - The string to match
Parameters:
  dirsOnly - Only match directories?
since:
   jEdit 4.3pre3



findCompletion
public static String findCompletion(String path, String complete, VFSBrowser browser, boolean dirsOnly)(Code)



getColor
public Color getColor()(Code)
Returns the color that will be used to display the file. the color of the file



getDefaultIcon
final public Icon getDefaultIcon(boolean expanded, boolean openBuffer)(Code)
Returns the default icon for the file.
since:
   jEdit 4.3pre9



getDefaultIcon
final public Icon getDefaultIcon(boolean expanded)(Code)
Returns the default icon of the file. the default icon of the file
since:
   jEdit 4.3pre9



getDeletePath
public String getDeletePath()(Code)



getExtendedAttribute
public String getExtendedAttribute(String name)(Code)
Returns the value of an extended attribute. Note that this returns formatted strings (eg, "10 Mb" for a file size of 1048576 bytes). If you need access to the raw data, access fields and methods of this class.
Parameters:
  name - The extended attribute name
since:
   jEdit 4.2pre1



getIcon
final public Icon getIcon(boolean expanded)(Code)
Returns the icon for the file.
since:
   jEdit 4.3pre9



getIcon
public Icon getIcon(boolean expanded, boolean openBuffer)(Code)
Returns the icon for the file. Implementations of File system browsers can override this method
since:
   jEdit 4.3pre9



getLength
public long getLength()(Code)



getName
public String getName()(Code)



getPath
public String getPath()(Code)



getSymlinkPath
public String getSymlinkPath()(Code)



getType
public int getType()(Code)



getVFS
public VFS getVFS()(Code)
The originating virtual file system of this file.



isBinary
public boolean isBinary(Object session) throws IOException(Code)
Check if a file is binary file.
Parameters:
  session - the VFS session true if the file was detected as binary
throws:
  IOException - IOException If an I/O error occurs
since:
   jEdit 4.3pre5



isHidden
public boolean isHidden()(Code)



isReadable
public boolean isReadable()(Code)



isWriteable
public boolean isWriteable()(Code)



setDeletePath
public void setDeletePath(String deletePath)(Code)



setHidden
public void setHidden(boolean hidden)(Code)



setLength
public void setLength(long length)(Code)



setName
public void setName(String name)(Code)



setPath
public void setPath(String path)(Code)



setReadable
public void setReadable(boolean canRead)(Code)



setSymlinkPath
public void setSymlinkPath(String symlinkPath)(Code)



setType
public void setType(int type)(Code)



setWriteable
public void setWriteable(boolean canWrite)(Code)



toString
public String toString()(Code)



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.