public class FSRepositoryUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_KEY_SIZE |
| Constructor and Description |
|---|
FSRepositoryUtil() |
| Modifier and Type | Method and Description |
|---|---|
static long |
align(long size,
long boundary) |
static boolean |
areFileContentsChanged(FSRoot root1,
String path1,
FSRoot root2,
String path2) |
static boolean |
arePropertiesChanged(FSRoot root1,
String path1,
FSRoot root2,
String path2) |
static boolean |
arePropertiesEqual(FSRevisionNode revNode1,
FSRevisionNode revNode2) |
static boolean |
checkFilesDifferent(FSRoot root1,
String path1,
FSRoot root2,
String path2,
SVNDeltaCombiner deltaCombiner) |
static void |
checkReposDBFormat(int format) |
static void |
copy(InputStream src,
OutputStream dst,
ISVNCanceller canceller) |
static int |
encodeInt(byte[] bytes,
long value) |
static int |
encodeUnsignedInt(byte[] bytes,
long value) |
static String |
generateLockToken() |
static String |
generateNextKey(String oldKey) |
static SVNProperties |
getPropsDiffs(SVNProperties sourceProps,
SVNProperties targetProps) |
static void |
loadRootChangesOffset(FSFS fsfs,
long revision,
FSFile file,
long[] rootOffset,
long[] changesOffset) |
static void |
loadRootChangesOffsetLogicalAddressing(FSFS fsfs,
long revision,
FSFile file,
long index,
long[] rootOffset,
long[] changesOffset) |
static long |
readLongLittleEndian(RandomAccessFile randomAccessFile) |
static void |
replay(FSFS fsfs,
FSRoot root,
String basePath,
long lowRevision,
boolean sendDeltas,
ISVNEditor editor) |
static void |
sendTextDelta(ISVNEditor editor,
String editPath,
String sourcePath,
String hexDigest,
FSRevisionRoot sourceRoot,
String targetPath,
FSRoot targetRoot,
boolean sendDeltas,
SVNDeltaCombiner deltaCombiner,
SVNDeltaGenerator deltaGenerator,
FSFS fsfs) |
static void |
validateProperty(String propertyName,
SVNPropertyValue propertyValue) |
static void |
writeLongLittleEndian(RandomAccessFile randomAccessFile,
long value) |
public static final int MAX_KEY_SIZE
public static String generateLockToken() throws SVNException
SVNExceptionpublic static void replay(FSFS fsfs, FSRoot root, String basePath, long lowRevision, boolean sendDeltas, ISVNEditor editor) throws SVNException
SVNExceptionpublic static void copy(InputStream src, OutputStream dst, ISVNCanceller canceller) throws SVNException
SVNExceptionpublic static boolean arePropertiesEqual(FSRevisionNode revNode1, FSRevisionNode revNode2)
public static boolean arePropertiesChanged(FSRoot root1, String path1, FSRoot root2, String path2) throws SVNException
SVNExceptionpublic static boolean areFileContentsChanged(FSRoot root1, String path1, FSRoot root2, String path2) throws SVNException
SVNExceptionpublic static SVNProperties getPropsDiffs(SVNProperties sourceProps, SVNProperties targetProps)
public static boolean checkFilesDifferent(FSRoot root1, String path1, FSRoot root2, String path2, SVNDeltaCombiner deltaCombiner) throws SVNException
SVNExceptionpublic static void sendTextDelta(ISVNEditor editor, String editPath, String sourcePath, String hexDigest, FSRevisionRoot sourceRoot, String targetPath, FSRoot targetRoot, boolean sendDeltas, SVNDeltaCombiner deltaCombiner, SVNDeltaGenerator deltaGenerator, FSFS fsfs) throws SVNException
SVNExceptionpublic static void loadRootChangesOffsetLogicalAddressing(FSFS fsfs, long revision, FSFile file, long index, long[] rootOffset, long[] changesOffset) throws SVNException
SVNExceptionpublic static void loadRootChangesOffset(FSFS fsfs, long revision, FSFile file, long[] rootOffset, long[] changesOffset) throws SVNException
SVNExceptionpublic static String generateNextKey(String oldKey) throws SVNException
SVNExceptionpublic static void checkReposDBFormat(int format)
throws SVNException
SVNExceptionpublic static void validateProperty(String propertyName, SVNPropertyValue propertyValue) throws SVNException
SVNExceptionpublic static long align(long size,
long boundary)
public static long readLongLittleEndian(RandomAccessFile randomAccessFile) throws IOException
IOExceptionpublic static void writeLongLittleEndian(RandomAccessFile randomAccessFile, long value) throws IOException
IOExceptionpublic static int encodeInt(byte[] bytes,
long value)
public static int encodeUnsignedInt(byte[] bytes,
long value)
Copyright © 2025. All rights reserved.