From c077b216f14ddb7763535998d048972910cd190f Mon Sep 17 00:00:00 2001 From: paulby Date: Wed, 21 Mar 2007 17:40:50 +0000 Subject: Fix bug 468, implement close() git-svn-id: https://svn.java.net/svn/j3d-core-utils~svn/trunk@156 9497e636-51bd-65ba-982d-a4982e1767a5 --- .../com/sun/j3d/utils/scenegraph/io/SceneGraphStreamReader.java | 9 +++++++++ .../com/sun/j3d/utils/scenegraph/io/SceneGraphStreamWriter.java | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'src/classes/share/com/sun/j3d') diff --git a/src/classes/share/com/sun/j3d/utils/scenegraph/io/SceneGraphStreamReader.java b/src/classes/share/com/sun/j3d/utils/scenegraph/io/SceneGraphStreamReader.java index 7005cf9..7655543 100644 --- a/src/classes/share/com/sun/j3d/utils/scenegraph/io/SceneGraphStreamReader.java +++ b/src/classes/share/com/sun/j3d/utils/scenegraph/io/SceneGraphStreamReader.java @@ -112,6 +112,15 @@ public class SceneGraphStreamReader extends java.lang.Object { return control.getClassLoader(); } + /** + * Close the SceneGraphStreamReader stream + * + * @since 1.5.1 + */ + public void close() throws IOException { + in.close(); + control.close(); + } } diff --git a/src/classes/share/com/sun/j3d/utils/scenegraph/io/SceneGraphStreamWriter.java b/src/classes/share/com/sun/j3d/utils/scenegraph/io/SceneGraphStreamWriter.java index aaf7d7d..70e471c 100644 --- a/src/classes/share/com/sun/j3d/utils/scenegraph/io/SceneGraphStreamWriter.java +++ b/src/classes/share/com/sun/j3d/utils/scenegraph/io/SceneGraphStreamWriter.java @@ -119,9 +119,10 @@ public class SceneGraphStreamWriter extends java.lang.Object { } /** - * Close the SceneGraphStreamWriter, but does not close the Stream + * Close the SceneGraphStreamWriter and the associated stream */ public void close() throws IOException { control.close(); + out.close(); } } -- cgit v1.2.3