Fix findbugs encoding warning Vmds files created by ESX are UTF-8 encoded

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #403
This commit is contained in:
Rafael da Fonseca 2015-06-14 12:02:35 +02:00 committed by Rohit Yadav
parent f8b364b7c7
commit f5f93884d1

View File

@ -39,7 +39,7 @@ public class SnapshotDescriptor {
public void parse(byte[] vmsdFileContent) throws IOException {
BufferedReader in = null;
try {
in = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(vmsdFileContent)));
in = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(vmsdFileContent),"UTF-8"));
String line;
while ((line = in.readLine()) != null) {
// TODO, remember to remove this log, temporarily added for debugging purpose