public class DllFile extends Object
.dll
files whether they are really different.
Microsoft decided that .dll
files should contain timestamps. While
arguably valuable metadata, it is unfortunate that a simply byte-wise
comparison of two .dll
files bears no meaning as to whether the
file's function is different, because time stamps are engrained in the
.dll
files.
This class knows about the details of the .dll
file format and uses
that knowledge to determine whether two .dll
files are really
different.
Constructor and Description |
---|
DllFile(File file)
Constructs a
.dll file parser. |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the underlying
RandomAccessFile . |
static boolean |
equals(File a,
URL b)
Compares two
.dll files, skipping time stamp entries, checksums and the likes. |
boolean |
equals(URLConnection o)
Determines whether two
.dll files are functionally equal. |
static void |
main(String... args) |
public DllFile(File file) throws IOException
.dll
file parser.file
- the path to the .dll
fileIOException
public static void main(String... args) throws MalformedURLException
MalformedURLException
public static boolean equals(File a, URL b)
.dll
files, skipping time stamp entries, checksums and the likes.a
- the first .dll
fileb
- the second .dll
filepublic void close() throws IOException
RandomAccessFile
.IOException
public boolean equals(URLConnection o) throws IOException
.dll
files are functionally equal.o
- the second .dll
fileIOException
Copyright © 2014–2022 ImageJ. All rights reserved.