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 fileIOExceptionpublic static void main(String... args) throws MalformedURLException
MalformedURLExceptionpublic 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.IOExceptionpublic boolean equals(URLConnection o) throws IOException
.dll files are functionally equal.o - the second .dll fileIOExceptionCopyright © 2014–2022 ImageJ. All rights reserved.