org.jruby.util
Class NormalizedFile
java.lang.Object
JavaSecuredFile
org.jruby.util.NormalizedFile
public class NormalizedFile
- extends JavaSecuredFile
This class provides a File implementation that normalizes all path separators to forward slashes.
This mimics the behavior of C Ruby, where all paths are internally made UNIX-style, even on Windows.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NormalizedFile
public NormalizedFile(java.lang.String pathname)
NormalizedFile
public NormalizedFile(java.net.URI uri)
NormalizedFile
public NormalizedFile(java.io.File parent,
java.lang.String child)
NormalizedFile
public NormalizedFile(java.lang.String parent,
java.lang.String child)
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()
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)
getFileProperty
public static java.lang.String getFileProperty(java.lang.String property)
Copyright © 2002-2007 JRuby Team. All Rights Reserved.