public static Project load(Path location,Decoder decoder) throws SpeedmentConfigException {
  try {
    final byte[] content=Files.readAllBytes(location);
    return load(new String(content,StandardCharsets.UTF_8),decoder);
  }
 catch (  final IOException ex) {
    throw new SpeedmentConfigException("Could not load json-file from path '" + location + "'.",ex);
  }
}

public static Project load ( Path location , Decoder decoder ) throws SpeedmentConfigException { try { final byte [ ] content = Files . readAllBytes ( location ) ; return load ( new String ( content , StandardCharsets . UTF_8 ) , decoder ) ; } catch ( final IOException ex ) { throw new SpeedmentConfigException ( "Could not load json-file from path '" + location + "'." , ex ) ; } }
loads a project from a utf - 8 encoded file .
