This seems to promote the wrong way to do such thing, the usual use case is that you want to compare the content of a well know file with the content of a bunch of other files, so hashing is better.
Rémi ----- Mail original ----- > De: "Joe Wang" <huizhe.w...@oracle.com> > À: "nio-dev" <nio-...@openjdk.java.net>, "core-libs-dev" > <core-libs-dev@openjdk.java.net> > Envoyé: Vendredi 27 Avril 2018 06:51:08 > Objet: RFR(JDK11/NIO) 8202285: (fs) Add a method to Files for comparing file > contents > Hi, > > Considering extending isSameFile to add isSameContent to Files. Please > review. > > JBS: https://bugs.openjdk.java.net/browse/JDK-8202285 > > webrev: http://cr.openjdk.java.net/~joehw/jdk11/8202285/webrev/ > > specdiff: > http://cr.openjdk.java.net/~joehw/jdk11/8202285/specdiff/java/nio/file/Files.html > > Thanks, > Joe