Close stream when reading/writing is done.

This commit is contained in:
Holt59 2018-03-11 21:59:55 +01:00
부모 80df87ba51
커밋 94cbeef58f
2개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@ -54,6 +54,8 @@ public class BinaryPathReader extends BinaryReader implements PathReader {
nodes.add(readNode(graph));
}
this.dis.close();
return Path.createFastestPathFromNodes(graph, nodes);
}

파일 보기

@ -48,6 +48,7 @@ public class BinaryPathWriter extends BinaryWriter implements PathWriter {
}
dos.flush();
dos.close();
}
}