📄 scenegraphstreamwriter.html
字号:
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="SceneGraphStreamWriter(java.io.OutputStream)"><!-- --></A><H3>SceneGraphStreamWriter</H3><PRE>public <B>SceneGraphStreamWriter</B>(java.io.OutputStream outputStream) throws java.io.IOException</PRE><DL><DD>Creates new SceneGraphStreamWriter that will write to the supplied stream<P><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="writeUniverse(com.sun.j3d.utils.universe.SimpleUniverse, boolean)"><!-- --></A><H3>writeUniverse</H3><PRE>public void <B>writeUniverse</B>(<A HREF="../../../../../../com/sun/j3d/utils/universe/SimpleUniverse.html" title="class in com.sun.j3d.utils.universe">SimpleUniverse</A> universe, boolean writeContent) throws java.io.IOException, <A HREF="../../../../../../com/sun/j3d/utils/scenegraph/io/UnsupportedUniverseException.html" title="class in com.sun.j3d.utils.scenegraph.io">UnsupportedUniverseException</A></PRE><DL><DD>Write <code>universe</code> to the Stream.<p> If <code>writeContent</code> is true then all BranchGraphs attached to the universe will be saved. If it is false then only the universe data structures will be output (PlatformGeometry, ViewerAvatar, Locales, and the MultiTransformGroup between the ViewingPlatform and the View).<p> If <code>writeContent</code> is true then all the BranchGraphs attached to the Locales of the universe must have the ALLOW_DETACH capability set. If they do not, a <code>CapabilityNotSetException</code> will be thrown<p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>universe</CODE> - The universe to write<DD><CODE>writeContent</CODE> - Flag enabling the BranchGraphs to be written<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE><DD><CODE><A HREF="../../../../../../com/sun/j3d/utils/scenegraph/io/UnsupportedUniverseException.html" title="class in com.sun.j3d.utils.scenegraph.io">UnsupportedUniverseException</A></CODE> - Thrown if the universe class is not supported by this implementation</DL></DD></DL><HR><A NAME="writeBranchGraph(javax.media.j3d.BranchGroup, java.util.HashMap)"><!-- --></A><H3>writeBranchGraph</H3><PRE>public void <B>writeBranchGraph</B>(<A HREF="../../../../../../javax/media/j3d/BranchGroup.html" title="class in javax.media.j3d">BranchGroup</A> graph, java.util.HashMap namedObjects) throws java.io.IOException, <A HREF="../../../../../../javax/media/j3d/DanglingReferenceException.html" title="class in javax.media.j3d">DanglingReferenceException</A>, <A HREF="../../../../../../com/sun/j3d/utils/scenegraph/io/NamedObjectException.html" title="class in com.sun.j3d.utils.scenegraph.io">NamedObjectException</A></PRE><DL><DD>Write the entire graph to the stream.<p> The API will correctly handle NodeComponents that are shared between seperate graphs. However Nodes cannot be referenced in other Graphs.<p> If a reference to a Node in another graph is encountered a DanglingReferenceException will be thrown. <code>namedObjects</code> can contain a mapping between a key and a SceneGraphObject in the graph. During the read process this can be used to locate nodes in the graph.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE><DD><CODE><A HREF="../../../../../../javax/media/j3d/DanglingReferenceException.html" title="class in javax.media.j3d">DanglingReferenceException</A></CODE><DD><CODE><A HREF="../../../../../../com/sun/j3d/utils/scenegraph/io/NamedObjectException.html" title="class in com.sun.j3d.utils.scenegraph.io">NamedObjectException</A></CODE></DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public void <B>close</B>() throws java.io.IOException</PRE><DL><DD>Close the SceneGraphStreamWriter, but does not close the Stream<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../com/sun/j3d/utils/scenegraph/io/SceneGraphStreamReader.html" title="class in com.sun.j3d.utils.scenegraph.io"><B>PREV CLASS</B></A> <A HREF="../../../../../../com/sun/j3d/utils/scenegraph/io/UnresolvedBehavior.html" title="class in com.sun.j3d.utils.scenegraph.io"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../index.html?com/sun/j3d/utils/scenegraph/io/SceneGraphStreamWriter.html" target="_top"><B>FRAMES</B></A> <A HREF="SceneGraphStreamWriter.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1">Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../../../../../../LICENSE-SPEC.html">license terms</a>.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -