method apply(ISO9660File file) of JolietNamingConventions class rise an exception if the file name is 60 characters long (excluded the extension). I fixed the problem in the following way:
if (filename.length() + extension.length() + (file.getVersion() + "").length() + 2 > 64) {
if (filename.length() >= extension.length()) {
// Shorten filename
filename = filename.substring(0, 64 - 2 - (file.getVersion() + "").length() - extension.length());
} else {
// Shorten extension
extension = extension.substring(0, 64 - 2 - (file.getVersion() + "").length() - filename.length());
}
}
Hello,
making some tests with iso9660-writer, I discovered that:
method apply(ISO9660File file) of JolietNamingConventions class rise an exception if the file name is 60 characters long (excluded the extension). I fixed the problem in the following way:
Regards,
Davide Raccagni