org.apache.archiva.common.utils
Class BaseFile

java.lang.Object
  extended by java.io.File
      extended by org.apache.archiva.common.utils.BaseFile
All Implemented Interfaces:
Serializable, Comparable<File>

public class BaseFile
extends File

BaseFile - convenient File object that tracks the Base Directory and can provide relative path values for the file object based on that Base Directory value.

See Also:
Serialized Form

Field Summary
private  File baseDir
           
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
BaseFile(File pathFile)
           
BaseFile(File repoDir, File pathFile)
           
BaseFile(File parent, String child)
           
BaseFile(String pathname)
           
BaseFile(String repoDir, File pathFile)
           
BaseFile(String parent, String child)
           
BaseFile(URI uri)
           
 
Method Summary
 File getBaseDir()
           
 String getRelativePath()
           
 void setBaseDir(File baseDir)
           
 void setBaseDir(String repoDir)
           
 
Methods inherited from class java.io.File
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toString, toURI, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

baseDir

private File baseDir
Constructor Detail

BaseFile

public BaseFile(File pathFile)

BaseFile

public BaseFile(File repoDir,
                File pathFile)

BaseFile

public BaseFile(File parent,
                String child)

BaseFile

public BaseFile(String pathname)

BaseFile

public BaseFile(String repoDir,
                File pathFile)

BaseFile

public BaseFile(String parent,
                String child)

BaseFile

public BaseFile(URI uri)
Method Detail

getBaseDir

public File getBaseDir()

getRelativePath

public String getRelativePath()

setBaseDir

public void setBaseDir(File baseDir)

setBaseDir

public void setBaseDir(String repoDir)


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.