import java.io.File;
import java.io.IOException;
import java.net.URL;
+import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.onap.cli.fw.input.OnapCommandParameterType;
import org.onap.cli.main.error.OnapCliArgumentValueMissing;
import org.onap.cli.main.error.OnapCliInvalidArgument;
-import org.yaml.snakeyaml.Yaml;
+import com.esotericsoftware.yamlbeans.YamlReader;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
try {
File file = new File(input);
if (file.isFile()) {
- return FileUtils.readFileToString(file);
+ return FileUtils.readFileToString(file, (Charset) null);
} else {
return input;
}
try {
File file = new File(input);
if (file.isFile()) {
- String value = FileUtils.readFileToString(file);
- new Yaml().load(value);
+ String value = FileUtils.readFileToString(file, (Charset) null);
+ YamlReader reader = new YamlReader(value);
+ value = (String) reader.read();
return value;
} else {
return input;