Java Doc for File.java in  » IDE » J » org » armedbear » j » 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 » IDE » J » org.armedbear.j 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.armedbear.j.File

All known Subclasses:   org.armedbear.j.SshFile,  org.armedbear.j.FtpFile,  org.armedbear.j.HttpFile,
File
public class File implements Comparable(Code)


Field Summary
final public static  StringPREFIX_FILE
    
final public static  StringPREFIX_FTP
    
final public static  StringPREFIX_HTTP
    
final public static  StringPREFIX_HTTPS
    
final public static  StringPREFIX_LOCAL_HOST
    
final public static  StringPREFIX_SSH
    
final public static  intPROTOCOL_FILE
    
final public static  intPROTOCOL_FTP
    
final public static  intPROTOCOL_HTTP
    
final public static  intPROTOCOL_HTTPS
    
final public static  intPROTOCOL_SSH
    
final public static  intTYPE_DIRECTORY
    
final public static  intTYPE_FILE
    
final public static  intTYPE_LINK
    
final public static  intTYPE_UNKNOWN
    
protected  StringcanonicalPath
    
protected  StringhostName
    
protected  booleanisRemote
    
protected  Stringpassword
    
protected  intport
    
protected  intprotocol
    
protected  inttype
    
protected  StringuserName
    

Constructor Summary
protected  File()
    

Method Summary
final public static  StringappendNameToPath(String path, String name)
    
public static  StringappendNameToPath(String path, String name, char separator)
    
public  booleancanRead()
    
public  booleancanWrite()
    
final public synchronized  StringcanonicalPath()
    
protected static  Stringcanonicalize(String name, String sep)
    
final public  intcompareTo(Object o)
    
public  booleandelete()
    
public  booleanequals(Object obj)
    
public  booleanexists()
    
public  StringgetAbsolutePath()
    
public  StringgetCanonicalPath()
    
public  StringgetDirectoryListing()
    
public  StringgetDirectoryListing(boolean forceRefresh)
    
public  StringgetDrive()
    
final public  StringgetEncoding()
    
final public  StringgetHostName()
    
public  FileInputStreamgetInputStream()
    
public static  FilegetInstance(String name)
    
public static  FilegetInstance(File directory, String name)
    
public static  FilegetInstance(String host, String path, int protocol)
    
public  StringgetName()
    
public  FileOutputStreamgetOutputStream()
    
public  FileOutputStreamgetOutputStream(boolean append)
    
public  StringgetParent()
    
public  FilegetParentFile()
    
final public  StringgetPassword()
    
public  intgetPermissions()
    
final public  intgetPort()
    
public  intgetProtocol()
    
public  RandomAccessFilegetRandomAccessFile(String mode)
    
public  FilegetRoot()
    
public  StringgetSeparator()
    
public  chargetSeparatorChar()
    
final public  StringgetUserName()
    
public static  booleanhasLocalPrefix(String name)
    
public static  booleanhasRemotePrefix(String name)
    
public  inthashCode()
    
protected  booleaninitRemote(String name, String prefix)
    
public  booleanisAbsolute()
    
public  booleanisDirectory()
    
public  booleanisFile()
    
public  booleanisLink()
    
final public  booleanisLocal()
    
final public  booleanisRemote()
    
public  longlastModified()
    
public  longlength()
    
public  String[]list()
    
public  String[]list(FilenameFilter filter)
    
public  File[]listFiles()
    
public static  File[]listRoots()
    
public  booleanmkdir()
    
public  booleanmkdirs()
    
public  StringnetPath()
    
public static  Stringnormalize(String name)
    
public  booleanrenameTo(File f)
    
public synchronized  voidsetCanonicalPath(String s)
    
final public  voidsetEncoding(String encoding)
    
public  booleansetLastModified(long time)
    
final public  voidsetPassword(String password)
    
public  voidsetPermissions(int permissions)
    
final public  voidsetUserName(String userName)
    
public  StringtoString()
    

Field Detail
PREFIX_FILE
final public static String PREFIX_FILE(Code)



PREFIX_FTP
final public static String PREFIX_FTP(Code)



PREFIX_HTTP
final public static String PREFIX_HTTP(Code)



PREFIX_HTTPS
final public static String PREFIX_HTTPS(Code)



PREFIX_LOCAL_HOST
final public static String PREFIX_LOCAL_HOST(Code)



PREFIX_SSH
final public static String PREFIX_SSH(Code)



PROTOCOL_FILE
final public static int PROTOCOL_FILE(Code)



PROTOCOL_FTP
final public static int PROTOCOL_FTP(Code)



PROTOCOL_HTTP
final public static int PROTOCOL_HTTP(Code)



PROTOCOL_HTTPS
final public static int PROTOCOL_HTTPS(Code)



PROTOCOL_SSH
final public static int PROTOCOL_SSH(Code)



TYPE_DIRECTORY
final public static int TYPE_DIRECTORY(Code)



TYPE_FILE
final public static int TYPE_FILE(Code)



TYPE_LINK
final public static int TYPE_LINK(Code)



TYPE_UNKNOWN
final public static int TYPE_UNKNOWN(Code)



canonicalPath
protected String canonicalPath(Code)



hostName
protected String hostName(Code)



isRemote
protected boolean isRemote(Code)



password
protected String password(Code)



port
protected int port(Code)



protocol
protected int protocol(Code)



type
protected int type(Code)



userName
protected String userName(Code)




Constructor Detail
File
protected File()(Code)




Method Detail
appendNameToPath
final public static String appendNameToPath(String path, String name)(Code)



appendNameToPath
public static String appendNameToPath(String path, String name, char separator)(Code)



canRead
public boolean canRead()(Code)



canWrite
public boolean canWrite()(Code)



canonicalPath
final public synchronized String canonicalPath()(Code)



canonicalize
protected static String canonicalize(String name, String sep)(Code)



compareTo
final public int compareTo(Object o)(Code)



delete
public boolean delete()(Code)



equals
public boolean equals(Object obj)(Code)



exists
public boolean exists()(Code)



getAbsolutePath
public String getAbsolutePath()(Code)



getCanonicalPath
public String getCanonicalPath() throws IOException(Code)



getDirectoryListing
public String getDirectoryListing()(Code)



getDirectoryListing
public String getDirectoryListing(boolean forceRefresh)(Code)



getDrive
public String getDrive()(Code)



getEncoding
final public String getEncoding()(Code)



getHostName
final public String getHostName()(Code)



getInputStream
public FileInputStream getInputStream() throws FileNotFoundException(Code)



getInstance
public static File getInstance(String name)(Code)



getInstance
public static File getInstance(File directory, String name)(Code)



getInstance
public static File getInstance(String host, String path, int protocol)(Code)



getName
public String getName()(Code)



getOutputStream
public FileOutputStream getOutputStream() throws FileNotFoundException(Code)



getOutputStream
public FileOutputStream getOutputStream(boolean append) throws FileNotFoundException(Code)



getParent
public String getParent()(Code)



getParentFile
public File getParentFile()(Code)



getPassword
final public String getPassword()(Code)



getPermissions
public int getPermissions()(Code)



getPort
final public int getPort()(Code)



getProtocol
public int getProtocol()(Code)



getRandomAccessFile
public RandomAccessFile getRandomAccessFile(String mode) throws FileNotFoundException(Code)



getRoot
public File getRoot()(Code)



getSeparator
public String getSeparator()(Code)



getSeparatorChar
public char getSeparatorChar()(Code)



getUserName
final public String getUserName()(Code)



hasLocalPrefix
public static boolean hasLocalPrefix(String name)(Code)



hasRemotePrefix
public static boolean hasRemotePrefix(String name)(Code)



hashCode
public int hashCode()(Code)



initRemote
protected boolean initRemote(String name, String prefix)(Code)



isAbsolute
public boolean isAbsolute()(Code)



isDirectory
public boolean isDirectory()(Code)



isFile
public boolean isFile()(Code)



isLink
public boolean isLink()(Code)



isLocal
final public boolean isLocal()(Code)



isRemote
final public boolean isRemote()(Code)



lastModified
public long lastModified()(Code)



length
public long length()(Code)



list
public String[] list()(Code)



list
public String[] list(FilenameFilter filter)(Code)



listFiles
public File[] listFiles()(Code)



listRoots
public static File[] listRoots()(Code)



mkdir
public boolean mkdir()(Code)



mkdirs
public boolean mkdirs()(Code)



netPath
public String netPath()(Code)



normalize
public static String normalize(String name)(Code)



renameTo
public boolean renameTo(File f)(Code)



setCanonicalPath
public synchronized void setCanonicalPath(String s)(Code)



setEncoding
final public void setEncoding(String encoding)(Code)



setLastModified
public boolean setLastModified(long time)(Code)



setPassword
final public void setPassword(String password)(Code)



setPermissions
public void setPermissions(int permissions)(Code)



setUserName
final public void setUserName(String userName)(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.