public final class Compare
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
bytesToString(byte[] p_bytes,
int p_offset,
int p_length) |
static int |
compare(byte[] p_left,
int p_leftOffset,
int p_leftLength,
byte[] p_right,
int p_rightOffset,
int p_rightLength) |
static boolean |
compare(ConnectionMgr p_mgr,
java.lang.String p_left,
java.lang.String p_right,
boolean p_recursive,
java.io.PrintWriter p_out)
This method will compare the files/directories at the paths specified and
return true if they are equivalent.
|
static void |
main(java.lang.String... args)
Main method so that this can be called from the command line.
|
public static boolean compare(ConnectionMgr p_mgr, java.lang.String p_left, java.lang.String p_right, boolean p_recursive, java.io.PrintWriter p_out) throws FilesystemException
p_mgr
- ConnectionMgr to use opening files.p_left
- Left path.p_right
- Right path.p_recursive
- true if it should recursively compare directory contents.p_out
- Optional PrintWriter for difference details, if they are the
same then nothing out output.FilesystemException
public static void main(java.lang.String... args)
args
- public static int compare(byte[] p_left, int p_leftOffset, int p_leftLength, byte[] p_right, int p_rightOffset, int p_rightLength)
public static java.lang.String bytesToString(byte[] p_bytes, int p_offset, int p_length)