diff options
author | paulby <[email protected]> | 2007-03-21 17:40:50 +0000 |
---|---|---|
committer | paulby <[email protected]> | 2007-03-21 17:40:50 +0000 |
commit | c077b216f14ddb7763535998d048972910cd190f (patch) | |
tree | bb4c6511e0b83555a2aef3c0369b4f8db6fe6504 /src/classes | |
parent | a5ae2df830611505b04d2539bfd8bdf878b82cc7 (diff) |
Fix bug 468, implement close()
git-svn-id: https://svn.java.net/svn/j3d-core-utils~svn/trunk@156 9497e636-51bd-65ba-982d-a4982e1767a5
Diffstat (limited to 'src/classes')
-rw-r--r-- | src/classes/share/com/sun/j3d/utils/scenegraph/io/SceneGraphStreamReader.java | 9 | ||||
-rw-r--r-- | src/classes/share/com/sun/j3d/utils/scenegraph/io/SceneGraphStreamWriter.java | 3 |
2 files changed, 11 insertions, 1 deletions
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(); } } |