public void setFormatVersion(final int formatVersion) {
this.formatVersion = formatVersion;
}
public static FlamdexMetadata readMetadata(final String directory) throws IOException {
JavaBeanLoader<FlamdexMetadata> loader = new JavaBeanLoader<FlamdexMetadata>(FlamdexMetadata.class);
<BUG>File metadataFile = new File(directory, "metadata.txt");
String metadata = Files.toString(metadataFile, Charsets.UTF_8);</BUG>
return loader.load(metadata);
}
public static void writeMetadata(final String directory, FlamdexMetadata metadata) throws IOException {

public void setFormatVersion(final int formatVersion) {
this.formatVersion = formatVersion;
}
public static FlamdexMetadata readMetadata(final String directory) throws IOException {
JavaBeanLoader<FlamdexMetadata> loader = new JavaBeanLoader<FlamdexMetadata>(FlamdexMetadata.class);
File metadataFile;
metadataFile = CachedFile.create(CachedFile.buildPath(directory, "metadata.txt")).loadFile();
String metadata = Files.toString(metadataFile, Charsets.UTF_8);
return loader.load(metadata);
}
public static void writeMetadata(final String directory, FlamdexMetadata metadata) throws IOException {
