public class RepoFile
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RepoFile.FsFile
File type wrapper for actual OS files.
|
Constructor and Description |
---|
RepoFile(java.io.File root,
java.io.File file)
Both root and file are absolute paths to files.
|
RepoFile(java.io.File root,
java.lang.String path)
Assumes that path is relative under root, and constructs a new
File
and calls RepoFile(File, File) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
basename() |
java.lang.String |
dirname() |
java.io.File |
file() |
java.lang.String |
fullname() |
java.lang.String |
hash() |
ChecksumAlgorithm |
hasher() |
long |
length() |
boolean |
matches(java.io.File file) |
static java.lang.String |
norm(java.lang.String path)
Somewhat complicated method to turn any path into a unique like path
rooted at "/".
|
java.lang.String |
toString() |
public RepoFile(java.io.File root, java.lang.String path)
File
and calls RepoFile(File, File)
public RepoFile(java.io.File root, java.io.File file)
public static java.lang.String norm(java.lang.String path)
path
- Non-null;public boolean matches(java.io.File file)
public java.io.File file()
public java.lang.String basename()
public java.lang.String dirname()
public java.lang.String fullname()
public ChecksumAlgorithm hasher()
public java.lang.String hash()
public long length()
public java.lang.String toString()
toString
in class java.lang.Object
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.