@ThreadSafe public final class DiffCache extends File
~/votorola/in/diff
. Cache files are
created with broad permissions for writing by all (vote-server account, Tomcat and
other process owners). Administrators should avoid deleting files at runtime, or
temporary process errors may occur.Modifier and Type | Field and Description |
---|---|
static LineTransformer1 |
LINE_TRANSFORMER
The line transformer (LT) for the diffs of this wiki cache.
|
static Pattern |
NO_DIFF_PATTERN
The pattern of a negative 'diff' result, where the two files are identical.
|
pathSeparator, pathSeparatorChar, separator, separatorChar
Constructor and Description |
---|
DiffCache(VoteServer _vS,
VoteServer.ConstructionContext cc)
Constructs a DiffCache for inclusion in a vote-server.
|
Modifier and Type | Method and Description |
---|---|
File |
diffFile(DraftPair pair)
Returns the cached diff output for the specified draft pair.
|
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, toPath, toString, toURI, toURL
public static final LineTransformer1 LINE_TRANSFORMER
public static final Pattern NO_DIFF_PATTERN
public DiffCache(VoteServer _vS, VoteServer.ConstructionContext cc) throws IOException
IOException
VoteServer.diffCache()
public File diffFile(DraftPair pair) throws IOException
IOException