Java Doc for Path.java in  » EJB-Server-resin-3.1.5 » util » com » caucho » vfs » 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 » EJB Server resin 3.1.5 » util » com.caucho.vfs 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.vfs.Path

All known Subclasses:   com.caucho.vfs.NotFoundPath,  com.caucho.vfs.NullPath,  com.caucho.vfs.PathWrapper,  com.caucho.vfs.FilesystemPath,  com.caucho.vfs.ConstPath,  com.caucho.vfs.StringPath,  com.caucho.vfs.TcpPath,
Path
abstract public class Path (Code)
A virtual filesystem path, essentially represented by a URL. Its API resembles a combination of the JDK File object and the URL object.

Paths are, in general, given with the canonical file separator of forward slash, '/'. The filesystems will take care of any necessary translation.

Currently available filesystems:

file:/path/to/file
Java file
http://host:port/path/name?query
HTTP request
tcp://host:port
Raw TCP connection
mailto:user@host?subject=foo&cc=user2
Mail to a user.
log:/group/subgroup/item
Logging based on the configuration file.
stdout:
System.out
stderr:
System.err
null:
The equivalent of /dev/null

Inner Class :static class PathKey

Field Summary
final protected static  L10NL
    
protected static  char_pathSeparatorChar
    
protected  SchemeMap_schemeMap
    
protected static  char_separatorChar
    
static  long_startTime
    

Constructor Summary
protected  Path(Path root)
     Creates a new Path object.

Method Summary
public  voidbind(Path context)
     Binds the context to the current path.
protected  PathcacheCopy()
     Copy for caching.
public  booleancanExecute()
     Tests if the file can be read.
public  booleancanRead()
     Tests if the file can be read.
public  booleancanWrite()
     Tests if the file can be written.
public  booleanchangeGroup(int gid)
    
public  booleanchangeGroup(String groupName)
    
public  booleanchangeOwner(int uid)
    
public  booleanchangeOwner(String ownerName)
    
public  booleanchmod(int value)
    
protected  Pathcopy()
    
public  PersistentDependencycreateDepend()
     Creates a dependency.
public  booleancreateLink(Path target, boolean hardLink)
     Creates a link named by this path to another path.
public  booleancreateNewFile()
     Creates the file named by this Path and returns true if the file is new.
public  PathcreateRoot()
     Creates a restricted root, like the Unix chroot call.
public  PathcreateRoot(SchemeMap schemeMap)
    
public  PathcreateTempFile(String prefix, String suffix)
     Creates a unique temporary file as a child of this directory.
public  booleanequals(Object o)
    
protected static  StringescapeURL(String rawURL)
    
public  booleanexists()
     Tests if the file exists.
public  ObjectgetAttribute(String name)
     Gets an attribute of the object.
public  IteratorgetAttributeNames()
     Returns a iterator of all attribute names set for this object.
public  longgetBlockCount()
     Returns equivalent of struct stat.st_blocks if appropriate.
public  longgetBlockSize()
     Returns equivalent of struct stat.st_blksize if appropriate.
public  Certificate[]getCertificates()
     Returns any signing certificates, e.g.
public  StringgetContentType()
     Returns the mime-type of the file.
public  longgetCrc64()
     Returns the crc64 code.
public  longgetCreateTime()
     Returns the create time of the file.
public  longgetDevice()
     Returns equivalent of struct stat.st_dev if appropriate.
public  longgetDeviceId()
     Returns equivalent of struct stat.st_rdev if appropriate.
public  longgetDiskSpaceFree()
    
public  longgetDiskSpaceTotal()
    
final public static  chargetFileSeparatorChar()
    
public  StringgetFullPath()
     Returns the full path, including the restricted root.
public  intgetGroup()
     Returns equivalent of struct stat.st_gid if appropriate.
public  StringgetHost()
    
public  longgetInode()
     Returns equivalent of struct stat.st_ino if appropriate.
public  longgetLastAccessTime()
     Returns the last access time of the file.
public  longgetLastModified()
     Returns the last modified time of the file.
public  longgetLastStatusChangeTime()
     Returns equivalent of struct stat.st_ctime if appropriate.
public  longgetLength()
     Returns the length of the file in bytes.
public  intgetMode()
     Returns equivalent of struct stat.st_mode if appropriate.
public  StringgetNativePath()
     Returns the native representation of the path.
public static  StringgetNewlineString()
    
public  intgetNumberOfLinks()
     Returns equivalent of struct stat.st_nlink if appropriate.
public  ObjectgetObject()
     Returns the object at this path.
public  intgetOwner()
    
public  PathgetParent()
     Returns the parent path.
abstract public  StringgetPath()
     Returns the path.
final public static  chargetPathSeparatorChar()
    
public  intgetPort()
     Returns the port.
public  StringgetQuery()
     Returns the query string of the path.
public  StringgetRelativePath()
     For union paths like MergePath, return the relative path into that path.
public  ArrayList<Path>getResources(String name)
     Looks up all the resources matching a name.
public  ArrayList<Path>getResources()
     Looks up all the existing resources.
abstract public  StringgetScheme()
    
final protected static  chargetSeparatorChar()
    
public  StringgetTail()
     Returns the last segment of the path.

e.g.

public  StringgetURL()
     Returns the full url for the given path.
public  intgetUser()
     Returns equivalent of struct stat.st_uid if appropriate.
protected static  StringgetUserDir()
    
public  StringgetUserPath()
     Returns the last string used as a lookup, if available.
public  ObjectgetValue()
     Gets the object at the path.
public  inthashCode()
    
public  booleanisBlockDevice()
     Tests if the path refers to a block device.
public  booleanisCharacterDevice()
     Tests if the path refers to a block device.
public  booleanisDirectory()
     Tests if the path refers to a directory.
public  booleanisExecutable()
    
public  booleanisFIFO()
     Tests if the path refers to a FIFO.
public  booleanisFile()
     Tests if the path refers to a file.
public  booleanisHardLink()
     Tests if the path refers to a hard link.
public  booleanisLink()
     Tests if the path refers to a symbolic link.
public  booleanisObject()
     Tests if the path refers to an object.
protected  booleanisPathCacheable()
    
public  booleanisSocket()
     Tests if the path refers to a socket.
public  booleanisSymbolicLink()
     Tests if the path refers to a symbolic link.
final public static  booleanisWindows()
    
public  booleanisWindowsInsecure()
     Returns true for windows security issues.
public  Iterator<String>iterator()
     Returns a jdk1.2 Iterator for the contents of this directory.
public  String[]list()
    
final public  Pathlookup(String name)
     Looks up a new path based on the old path.
public  Pathlookup(String userPath, Map<String, Object> newAttributes)
     Returns a new path relative to the current one.

Path only handles scheme:xxx.

public  PathlookupImpl(String userPath, Map<String, Object> newAttributes)
     Returns a new path relative to the current one.

Path only handles scheme:xxx.

final public  PathlookupNative(String name)
     Looks up a path using the local filesystem conventions.
public  PathlookupNative(String name, Map<String, Object> attributes)
     Looks up a native path, adding attributes.
public  StringlookupRelativeNativePath(Path path)
     Returns a native path relative to this native path if the passed path is relative to this path, or an absolute path if the passed path is not relative to this path.
public  booleanmkdir()
     Creates the directory named by this path.
public  booleanmkdirs()
     Creates the directory named by this path and any parent directories.
public  WriteStreamopenAppend()
     Opens a resin stream for appending.
public  StreamImplopenAppendImpl()
    
public  RandomAccessStreamopenRandomAccess()
     Opens a random-access stream.
final public  ReadStreamopenRead()
     Opens a resin ReadStream for reading.
public  StreamImplopenReadImpl()
    
public  ReadWritePairopenReadWrite()
     Opens a resin ReadWritePair for reading and writing.
public  voidopenReadWrite(ReadStream is, WriteStream os)
     Opens a resin ReadWritePair for reading and writing.
public  StreamImplopenReadWriteImpl()
    
final public  WriteStreamopenWrite()
     Opens a resin WriteStream for writing.
public  StreamImplopenWriteImpl()
    
public  booleanremove()
     Removes the file or directory named by this path.
public  booleanremoveAll()
     Removes the all files and directories below this path.
public  booleanrenameTo(Path path)
     Renames the file or directory to the name given by the path.
final public  booleanrenameTo(String path)
     Renames the file or directory to the name given by the path.
protected  StringscanScheme(String uri)
     Returns the scheme portion of a uri.
abstract protected  PathschemeWalk(String userPath, Map<String, Object> newAttributes, String newPath, int offset)
     Path-specific lookup.
final public static  voidsetDefaultSchemeMap(SchemeMap schemeMap)
    
public  booleansetExecutable(boolean isExecutable)
     Change the executable status of the of the oath.
public  voidsetLastModified(long time)
    
public  voidsetObject(Object obj)
     Sets the object at this path.
final public static  voidsetTestWindows(boolean isTest)
    
public  voidsetUserPath(String userPath)
     Sets the user path.
public  voidsetValue(Object obj)
     Sets the object at the path.

Normal filesystems will generally do nothing.

public  StringtoString()
    
public  booleantruncate()
     Sets the length of the file to zero.
public  booleantruncate(long length)
     Sets the length of the file.
public  voidunbind()
     unbinds a link.
public  voidwriteToStream(OutputStream os)
     Utility to write the contents of this path to the destination stream.
public  voidwriteToStream(OutputStreamWithBuffer os)
     Utility to write the contents of this path to the destination stream.

Field Detail
L
final protected static L10N L(Code)



_pathSeparatorChar
protected static char _pathSeparatorChar(Code)



_schemeMap
protected SchemeMap _schemeMap(Code)



_separatorChar
protected static char _separatorChar(Code)



_startTime
static long _startTime(Code)




Constructor Detail
Path
protected Path(Path root)(Code)
Creates a new Path object.
Parameters:
  root - the new Path root.




Method Detail
bind
public void bind(Path context)(Code)
Binds the context to the current path. Later lookups will return the new context instead of the current path. Essentially, this is a software symbolic link.



cacheCopy
protected Path cacheCopy()(Code)
Copy for caching.



canExecute
public boolean canExecute()(Code)
Tests if the file can be read.



canRead
public boolean canRead()(Code)
Tests if the file can be read.



canWrite
public boolean canWrite()(Code)
Tests if the file can be written.



changeGroup
public boolean changeGroup(int gid) throws IOException(Code)
Changes the group



changeGroup
public boolean changeGroup(String groupName) throws IOException(Code)
Changes the group



changeOwner
public boolean changeOwner(int uid) throws IOException(Code)
Changes the owner true if successful



changeOwner
public boolean changeOwner(String ownerName) throws IOException(Code)
Changes the owner true if successful



chmod
public boolean chmod(int value)(Code)
Changes the permissions true if successful



copy
protected Path copy()(Code)



createDepend
public PersistentDependency createDepend()(Code)
Creates a dependency.



createLink
public boolean createLink(Path target, boolean hardLink) throws IOException(Code)
Creates a link named by this path to another path.
Parameters:
  target - the target of the link
Parameters:
  hardLink - true if the link should be a hard link



createNewFile
public boolean createNewFile() throws IOException(Code)
Creates the file named by this Path and returns true if the file is new.



createRoot
public Path createRoot()(Code)
Creates a restricted root, like the Unix chroot call. Restricted roots cannot access schemes, so file:/etc/passwd cannot be used.

createRoot is useful for restricting JavaScript scripts without resorting to the dreadfully slow security manager.




createRoot
public Path createRoot(SchemeMap schemeMap)(Code)



createTempFile
public Path createTempFile(String prefix, String suffix) throws IOException(Code)
Creates a unique temporary file as a child of this directory.
Parameters:
  prefix - filename prefix
Parameters:
  suffix - filename suffix, defaults to .tmp Path to the new file.



equals
public boolean equals(Object o)(Code)



escapeURL
protected static String escapeURL(String rawURL)(Code)



exists
public boolean exists()(Code)
Tests if the file exists.



getAttribute
public Object getAttribute(String name) throws IOException(Code)
Gets an attribute of the object.



getAttributeNames
public Iterator getAttributeNames() throws IOException(Code)
Returns a iterator of all attribute names set for this object. null if path has no attributes.



getBlockCount
public long getBlockCount()(Code)
Returns equivalent of struct stat.st_blocks if appropriate.



getBlockSize
public long getBlockSize()(Code)
Returns equivalent of struct stat.st_blksize if appropriate.



getCertificates
public Certificate[] getCertificates()(Code)
Returns any signing certificates, e.g. for jar signing.



getContentType
public String getContentType()(Code)
Returns the mime-type of the file.

Mime-type ignorant filesystems return 'application/octet-stream'




getCrc64
public long getCrc64()(Code)
Returns the crc64 code.



getCreateTime
public long getCreateTime()(Code)
Returns the create time of the file. 0 for non-files.



getDevice
public long getDevice()(Code)
Returns equivalent of struct stat.st_dev if appropriate.



getDeviceId
public long getDeviceId()(Code)
Returns equivalent of struct stat.st_rdev if appropriate.



getDiskSpaceFree
public long getDiskSpaceFree()(Code)



getDiskSpaceTotal
public long getDiskSpaceTotal()(Code)



getFileSeparatorChar
final public static char getFileSeparatorChar()(Code)



getFullPath
public String getFullPath()(Code)
Returns the full path, including the restricted root.

For the following, path.getPath() returns '/file.html', while path.getFullPath() returns '/chroot/file.html'.

 Path chroot = Pwd.lookup("/chroot").createRoot();
 Path path = chroot.lookup("/file.html");
 



getGroup
public int getGroup()(Code)
Returns equivalent of struct stat.st_gid if appropriate.



getHost
public String getHost()(Code)
Returns the hostname



getInode
public long getInode()(Code)
Returns equivalent of struct stat.st_ino if appropriate.



getLastAccessTime
public long getLastAccessTime()(Code)
Returns the last access time of the file. 0 for non-files.



getLastModified
public long getLastModified()(Code)
Returns the last modified time of the file. According to the jdk, this may not correspond to the system time. 0 for non-files.



getLastStatusChangeTime
public long getLastStatusChangeTime()(Code)
Returns equivalent of struct stat.st_ctime if appropriate.



getLength
public long getLength()(Code)
Returns the length of the file in bytes. 0 for non-files



getMode
public int getMode()(Code)
Returns equivalent of struct stat.st_mode if appropriate.



getNativePath
public String getNativePath()(Code)
Returns the native representation of the path. On Windows, getNativePath() returns 'd:\\foo\bar.html', getPath() returns '/d:/foo/bar.html'



getNewlineString
public static String getNewlineString()(Code)



getNumberOfLinks
public int getNumberOfLinks()(Code)
Returns equivalent of struct stat.st_nlink if appropriate.



getObject
public Object getObject() throws IOException(Code)
Returns the object at this path. Normally, only paths like JNDI will support this.



getOwner
public int getOwner()(Code)



getParent
public Path getParent()(Code)
Returns the parent path.



getPath
abstract public String getPath()(Code)
Returns the path. e.g. for HTTP, returns the part after the host and port.



getPathSeparatorChar
final public static char getPathSeparatorChar()(Code)



getPort
public int getPort()(Code)
Returns the port.



getQuery
public String getQuery()(Code)
Returns the query string of the path.



getRelativePath
public String getRelativePath()(Code)
For union paths like MergePath, return the relative path into that path.



getResources
public ArrayList<Path> getResources(String name)(Code)
Looks up all the resources matching a name. (Generally only useful with MergePath.



getResources
public ArrayList<Path> getResources()(Code)
Looks up all the existing resources. (Generally only useful with MergePath.



getScheme
abstract public String getScheme()(Code)
Returns the url scheme



getSeparatorChar
final protected static char getSeparatorChar()(Code)



getTail
public String getTail()(Code)
Returns the last segment of the path.

e.g. for http://www.caucho.com/products/index.html, getTail() returns 'index.html'




getURL
public String getURL()(Code)
Returns the full url for the given path.



getUser
public int getUser()(Code)
Returns equivalent of struct stat.st_uid if appropriate.



getUserDir
protected static String getUserDir()(Code)



getUserPath
public String getUserPath()(Code)
Returns the last string used as a lookup, if available. This allows parsers to give intelligent error messages, with the user's path instead of the whole path. The following will print '../test.html':
 Path path = Pwd.lookup("/some/dir").lookup("../test.html");
 System.out.println(path.getUserPath());
 



getValue
public Object getValue() throws Exception(Code)
Gets the object at the path. Normal filesystems will generally typically return null.

A bean filesystem or a mime-type aware filesystem could deserialize the contents of the file.




hashCode
public int hashCode()(Code)



isBlockDevice
public boolean isBlockDevice()(Code)
Tests if the path refers to a block device.



isCharacterDevice
public boolean isCharacterDevice()(Code)
Tests if the path refers to a block device.



isDirectory
public boolean isDirectory()(Code)
Tests if the path refers to a directory.



isExecutable
public boolean isExecutable()(Code)
Tests if the path is marked as executable



isFIFO
public boolean isFIFO()(Code)
Tests if the path refers to a FIFO.



isFile
public boolean isFile()(Code)
Tests if the path refers to a file.



isHardLink
public boolean isHardLink()(Code)
Tests if the path refers to a hard link.



isLink
public boolean isLink()(Code)
Tests if the path refers to a symbolic link.



isObject
public boolean isObject()(Code)
Tests if the path refers to an object.



isPathCacheable
protected boolean isPathCacheable()(Code)
Returns true if the path itself is cacheable



isSocket
public boolean isSocket()(Code)
Tests if the path refers to a socket.



isSymbolicLink
public boolean isSymbolicLink()(Code)
Tests if the path refers to a symbolic link.



isWindows
final public static boolean isWindows()(Code)



isWindowsInsecure
public boolean isWindowsInsecure()(Code)
Returns true for windows security issues.



iterator
public Iterator<String> iterator() throws IOException(Code)
Returns a jdk1.2 Iterator for the contents of this directory.



list
public String[] list() throws IOException(Code)
The contents of this directory or null if the path does notrefer to a directory.



lookup
final public Path lookup(String name)(Code)
Looks up a new path based on the old path.
Parameters:
  name - relative url to the new path The new path.



lookup
public Path lookup(String userPath, Map<String, Object> newAttributes)(Code)
Returns a new path relative to the current one.

Path only handles scheme:xxx. Subclasses of Path will specialize the xxx.
Parameters:
  userPath - relative or absolute path, essentially any url.
Parameters:
  newAttributes - attributes for the new path. the new path or null if the scheme doesn't exist




lookupImpl
public Path lookupImpl(String userPath, Map<String, Object> newAttributes)(Code)
Returns a new path relative to the current one.

Path only handles scheme:xxx. Subclasses of Path will specialize the xxx.
Parameters:
  userPath - relative or absolute path, essentially any url.
Parameters:
  newAttributes - attributes for the new path. the new path or null if the scheme doesn't exist




lookupNative
final public Path lookupNative(String name)(Code)
Looks up a path using the local filesystem conventions. e.g. on Windows, a name of 'd:\foo\bar\baz.html' will look up the baz.html on drive d.
Parameters:
  name - relative url using local filesystem separators.



lookupNative
public Path lookupNative(String name, Map<String, Object> attributes)(Code)
Looks up a native path, adding attributes.



lookupRelativeNativePath
public String lookupRelativeNativePath(Path path)(Code)
Returns a native path relative to this native path if the passed path is relative to this path, or an absolute path if the passed path is not relative to this path.



mkdir
public boolean mkdir() throws IOException(Code)
Creates the directory named by this path. true if successful.



mkdirs
public boolean mkdirs() throws IOException(Code)
Creates the directory named by this path and any parent directories. true if successful.



openAppend
public WriteStream openAppend() throws IOException(Code)
Opens a resin stream for appending.



openAppendImpl
public StreamImpl openAppendImpl() throws IOException(Code)



openRandomAccess
public RandomAccessStream openRandomAccess() throws IOException(Code)
Opens a random-access stream.



openRead
final public ReadStream openRead() throws IOException(Code)
Opens a resin ReadStream for reading.



openReadImpl
public StreamImpl openReadImpl() throws IOException(Code)



openReadWrite
public ReadWritePair openReadWrite() throws IOException(Code)
Opens a resin ReadWritePair for reading and writing.

A chat channel, for example, would open its socket using this interface.




openReadWrite
public void openReadWrite(ReadStream is, WriteStream os) throws IOException(Code)
Opens a resin ReadWritePair for reading and writing.

A chat channel, for example, would open its socket using this interface.
Parameters:
  is - pre-allocated ReadStream to be initialized
Parameters:
  os - pre-allocated WriteStream to be initialized




openReadWriteImpl
public StreamImpl openReadWriteImpl() throws IOException(Code)



openWrite
final public WriteStream openWrite() throws IOException(Code)
Opens a resin WriteStream for writing.



openWriteImpl
public StreamImpl openWriteImpl() throws IOException(Code)



remove
public boolean remove() throws IOException(Code)
Removes the file or directory named by this path. true if successful



removeAll
public boolean removeAll() throws IOException(Code)
Removes the all files and directories below this path. true if successful.



renameTo
public boolean renameTo(Path path) throws IOException(Code)
Renames the file or directory to the name given by the path. true if successful



renameTo
final public boolean renameTo(String path) throws IOException(Code)
Renames the file or directory to the name given by the path. true if successful



scanScheme
protected String scanScheme(String uri)(Code)
Returns the scheme portion of a uri. Since schemes are case-insensitive, normalize them to lower case.



schemeWalk
abstract protected Path schemeWalk(String userPath, Map<String, Object> newAttributes, String newPath, int offset)(Code)
Path-specific lookup. Path implementations will override this.
Parameters:
  userPath - the user's lookup() path.
Parameters:
  newAttributes - the attributes for the new path.
Parameters:
  newPath - the lookup() path
Parameters:
  offset - offset into newPath to start lookup. the found path



setDefaultSchemeMap
final public static void setDefaultSchemeMap(SchemeMap schemeMap)(Code)



setExecutable
public boolean setExecutable(boolean isExecutable)(Code)
Change the executable status of the of the oath.
throws:
  UnsupportedOperationException -



setLastModified
public void setLastModified(long time)(Code)



setObject
public void setObject(Object obj) throws IOException(Code)
Sets the object at this path. Normally, only paths like JNDI will support this.



setTestWindows
final public static void setTestWindows(boolean isTest)(Code)



setUserPath
public void setUserPath(String userPath)(Code)
Sets the user path. Useful for temporary files caching another URL.



setValue
public void setValue(Object obj) throws Exception(Code)
Sets the object at the path.

Normal filesystems will generally do nothing. However, a bean filesystem or a mime-type aware filesystem could serialize the object and store it.




toString
public String toString()(Code)



truncate
public boolean truncate() throws IOException(Code)
Sets the length of the file to zero. true if successful



truncate
public boolean truncate(long length) throws IOException(Code)
Sets the length of the file. true if successful



unbind
public void unbind()(Code)
unbinds a link.



writeToStream
public void writeToStream(OutputStream os) throws IOException(Code)
Utility to write the contents of this path to the destination stream.
Parameters:
  os - destination stream.



writeToStream
public void writeToStream(OutputStreamWithBuffer os) throws IOException(Code)
Utility to write the contents of this path to the destination stream.
Parameters:
  os - destination stream.



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.