org.jruby.util
Class JRubyFile

java.lang.Object
  extended byjava.io.File
      extended byorg.jruby.util.JRubyFile
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class JRubyFile
extends java.io.File

This file acts as an alternative to NormalizedFile, due to the problems with current working directory.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Method Summary
static JRubyFile create(java.lang.String cwd, java.lang.String pathname)
           
static java.io.File createTempFile(java.lang.String prefix, java.lang.String suffix)
           
static java.io.File createTempFile(java.lang.String prefix, java.lang.String suffix, java.io.File directory)
           
 java.io.File getAbsoluteFile()
           
 java.lang.String getAbsolutePath()
           
 java.io.File getCanonicalFile()
           
 java.lang.String getCanonicalPath()
           
static java.lang.String getFileProperty(java.lang.String property)
           
 java.lang.String getParent()
           
 java.io.File getParentFile()
           
 java.lang.String getPath()
           
 java.lang.String[] list(java.io.FilenameFilter filter)
           
 java.io.File[] listFiles()
           
 java.io.File[] listFiles(java.io.FileFilter filter)
           
 java.io.File[] listFiles(java.io.FilenameFilter filter)
           
static java.io.File[] listRoots()
           
 java.lang.String toString()
           
 
Methods inherited from class java.io.File
canRead, canWrite, compareTo, compareTo, createNewFile, delete, deleteOnExit, equals, exists, getName, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toURI, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static JRubyFile create(java.lang.String cwd,
                               java.lang.String pathname)

getFileProperty

public static java.lang.String getFileProperty(java.lang.String property)

getAbsolutePath

public java.lang.String getAbsolutePath()

getCanonicalPath

public java.lang.String getCanonicalPath()
                                  throws java.io.IOException
Throws:
java.io.IOException

getPath

public java.lang.String getPath()

toString

public java.lang.String toString()

getAbsoluteFile

public java.io.File getAbsoluteFile()

getCanonicalFile

public java.io.File getCanonicalFile()
                              throws java.io.IOException
Throws:
java.io.IOException

getParent

public java.lang.String getParent()

getParentFile

public java.io.File getParentFile()

listRoots

public static java.io.File[] listRoots()

createTempFile

public static java.io.File createTempFile(java.lang.String prefix,
                                          java.lang.String suffix,
                                          java.io.File directory)
                                   throws java.io.IOException
Throws:
java.io.IOException

createTempFile

public static java.io.File createTempFile(java.lang.String prefix,
                                          java.lang.String suffix)
                                   throws java.io.IOException
Throws:
java.io.IOException

list

public java.lang.String[] list(java.io.FilenameFilter filter)

listFiles

public java.io.File[] listFiles()

listFiles

public java.io.File[] listFiles(java.io.FileFilter filter)

listFiles

public java.io.File[] listFiles(java.io.FilenameFilter filter)


Copyright © 2002-2007 JRuby Team. All Rights Reserved.