io.codemodder.EncodingDetector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codemodder-base Show documentation
Show all versions of codemodder-base Show documentation
Base framework for writing codemods in Java
package io.codemodder;
import java.io.IOException;
import java.nio.file.Path;
import java.util.Optional;
/** Detects the encoding of a file. */
public interface EncodingDetector {
/** Try to detect the encoding of a file. */
Optional detect(Path file) throws IOException;
static EncodingDetector create() {
return new DefaultEncodingDetector();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy