|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.services.scripts.RepoFile
public class RepoFile
File type wrapper for paths which are intended for being stored in the database as a part of this repository.
Nested Class Summary | |
---|---|
static class |
RepoFile.FsFile
File type wrapper for actual OS files. |
Constructor Summary | |
---|---|
RepoFile(File root,
File file)
Both root and file are absolute paths to files. |
|
RepoFile(File root,
String path)
Assumes that path is relative under root, and constructs a new RepoFile.FsFile
and calls RepoFile(File, File) |
Method Summary | |
---|---|
String |
basename()
|
String |
dirname()
|
File |
file()
|
String |
fullname()
|
long |
length()
|
boolean |
matches(File file)
|
static String |
norm(String path)
Somewhat complicated method to turn any path into a unique like path rooted at "/". |
String |
sha1()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RepoFile(File root, String path)
RepoFile.FsFile
and calls RepoFile(File, File)
public RepoFile(File root, File file)
Method Detail |
---|
public static String norm(String path)
path
- Non-null;
public boolean matches(File file)
public File file()
public String basename()
public String dirname()
public String fullname()
public String sha1()
public long length()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.3-00d1137e-b2894
Copyright © 2009 The University of Dundee. All Rights Reserved.