diff options
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(); } } |