MalformedInputException with Files.readAllLines()
问题 I was iterating over some files, 5328 to be precise. These files are average XML files with 60-200 lines max. They are first filtered through a simple method isXmlSourceFile that parse the path. Files.walk(Paths.get("/home/me/development/projects/myproject"), FileVisitOption.FOLLOW_LINKS) .filter(V3TestsGenerator::isXmlTestSourceFile) .filter(V3TestsGenerator::fileContainsXmlTag) The big question is for the second filter, especially the method fileContainsXmlTag. For each file I wanted to