qtbyteobject.html

来自「这个是java的quicktime for java 的详细使用文档」· HTML 代码 · 共 301 行 · 第 1/2 页

HTML
301
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Mon Jul 15 11:51:03 PDT 2002 --><TITLE>: Class  QTByteObject</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/QTByteObject.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../quicktime/util/QTBuild.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../quicktime/util/QTHandle.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="QTByteObject.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">quicktime.util</FONT><BR>Class  QTByteObject</H2><PRE>java.lang.Object  |  +--<B>quicktime.util.QTByteObject</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../quicktime/jdirect/PrimitivesLib.html">PrimitivesLib</A>, java.io.Serializable, <A HREF="../../quicktime/jdirect/SharedLibrary.html">SharedLibrary</A>, com.apple.jdirect.SharedLibrary</DD></DL><DL><DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../quicktime/util/ByteEncodedImage.html">ByteEncodedImage</A>, <A HREF="../../quicktime/qd3d/camera/CameraData.html">CameraData</A>, <A HREF="../../quicktime/qd3d/camera/CameraPlacement.html">CameraPlacement</A>, <A HREF="../../quicktime/qd3d/camera/CameraRange.html">CameraRange</A>, <A HREF="../../quicktime/qd3d/camera/CameraViewPort.html">CameraViewPort</A>, <A HREF="../../quicktime/std/image/CodecInfo.html">CodecInfo</A>, <A HREF="../../quicktime/std/comp/ComponentDescription.html">ComponentDescription</A>, <A HREF="../../quicktime/sound/CompressionInfo.html">CompressionInfo</A>, <A HREF="../../quicktime/std/image/DataRateParams.html">DataRateParams</A>, <A HREF="../../quicktime/std/qtcomponents/DataRateSettings.html">DataRateSettings</A>, <A HREF="../../quicktime/std/sg/DigitizerInfo.html">DigitizerInfo</A>, <A HREF="../../quicktime/streaming/ExportParams.html">ExportParams</A>, <A HREF="../../quicktime/std/image/GraphicsMode.html">GraphicsMode</A>, <A HREF="../../quicktime/std/image/GXPath.html">GXPath</A>, <A HREF="../../quicktime/std/image/GXPaths.html">GXPaths</A>, <A HREF="../../quicktime/std/image/ICMFrameTime.html">ICMFrameTime</A>, <A HREF="../../quicktime/std/image/ICMPixelFormatInfo.html">ICMPixelFormatInfo</A>, <A HREF="../../quicktime/std/music/InstKnob.html">InstKnob</A>, <A HREF="../../quicktime/std/music/InstKnobList.html">InstKnobList</A>, <A HREF="../../quicktime/std/music/InstSampleDesc.html">InstSampleDesc</A>, <A HREF="../../quicktime/std/music/KnobDescription.html">KnobDescription</A>, <A HREF="../../quicktime/std/movies/media/LevelMeterInfo.html">LevelMeterInfo</A>, <A HREF="../../quicktime/std/image/Matrix.html">Matrix</A>, <A HREF="../../quicktime/qd3d/math/Matrix3x3.html">Matrix3x3</A>, <A HREF="../../quicktime/qd3d/math/Matrix4x4.html">Matrix4x4</A>, <A HREF="../../quicktime/std/movies/media/MediaEQSpectrumBands.html">MediaEQSpectrumBands</A>, <A HREF="../../quicktime/std/music/MusicMIDIPacket.html">MusicMIDIPacket</A>, <A HREF="../../quicktime/std/music/NoteRequestInfo.html">NoteRequestInfo</A>, <A HREF="../../quicktime/qd/OpenCPicParams.html">OpenCPicParams</A>, <A HREF="../../quicktime/qd3d/math/Point3D.html">Point3D</A>, <A HREF="../../quicktime/qd/QDColor.html">QDColor</A>, <A HREF="../../quicktime/qd/QDDimension.html">QDDimension</A>, <A HREF="../../quicktime/qd/QDRect.html">QDRect</A>, <A HREF="../../quicktime/vr/QTVRAngleRange.html">QTVRAngleRange</A>, <A HREF="../../quicktime/vr/QTVRAtom.html">QTVRAtom</A>, <A HREF="../../quicktime/vr/QTVRCubicFace.html">QTVRCubicFace</A>, <A HREF="../../quicktime/vr/QTVRCubicView.html">QTVRCubicView</A>, <A HREF="../../quicktime/vr/QTVRTrackRefEntry.html">QTVRTrackRefEntry</A>, <A HREF="../../quicktime/qd3d/math/Quaternion.html">Quaternion</A>, <A HREF="../../quicktime/qd3d/transform/RotateTransformData.html">RotateTransformData</A>, <A HREF="../../quicktime/qd/text/ScrpSTElement.html">ScrpSTElement</A>, <A HREF="../../quicktime/sound/SCStatus.html">SCStatus</A>, <A HREF="../../quicktime/std/sg/SGDeviceName.html">SGDeviceName</A>, <A HREF="../../quicktime/sound/SoundComponentData.html">SoundComponentData</A>, <A HREF="../../quicktime/std/qtcomponents/SpatialSettings.html">SpatialSettings</A>, <A HREF="../../quicktime/sound/SPB.html">SPB</A>, <A HREF="../../quicktime/std/music/SynthesizerConnections.html">SynthesizerConnections</A>, <A HREF="../../quicktime/std/music/SynthesizerDescription.html">SynthesizerDescription</A>, <A HREF="../../quicktime/std/qtcomponents/TCTextOptions.html">TCTextOptions</A>, <A HREF="../../quicktime/std/qtcomponents/TemporalSettings.html">TemporalSettings</A>, <A HREF="../../quicktime/std/qtcomponents/TimeCodeDef.html">TimeCodeDef</A>, <A HREF="../../quicktime/std/qtcomponents/TimeCodeTime.html">TimeCodeTime</A>, <A HREF="../../quicktime/std/music/ToneDescription.html">ToneDescription</A>, <A HREF="../../quicktime/std/music/TuneStatus.html">TuneStatus</A>, <A HREF="../../quicktime/std/movies/TweenData.html">TweenData</A>, <A HREF="../../quicktime/qd3d/math/Vector2D.html">Vector2D</A>, <A HREF="../../quicktime/qd3d/math/Vector3D.html">Vector3D</A></DD></DL><HR><DL><DT>public class <B>QTByteObject</B><DT>extends java.lang.Object<DT>implements <A HREF="../../quicktime/jdirect/PrimitivesLib.html">PrimitivesLib</A>, java.io.Serializable</DL><P>Provides a representation of the native data structure as a byte array. The class implements the Serializable interface and can thus be serialized.<P> However the byte[] member is marked as transient because typically a QTByteObject is used to contain objects that have fields, such as shorts, ints, that are larger  than bytes. Moving these objects from big to little to big endian run-time architectures can cause problems if the endian issues of these members are not taken care of by the particular class of the object that is being serialized. Thus, any subclass of QTByteObject that is to be serialized defines custome read and write object methods that will  ensure that the serialized data that is written out is in big endian format, and if required will be flipped back to native format when read in.<P><DL><DT><B>See Also: </B><DD><A HREF="../../serialized-form.html#quicktime.util.QTByteObject">Serialized Form</A></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="fields_inherited_from_class_quicktime.jdirect.PrimitivesLib"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from interface quicktime.jdirect.<A HREF="../../quicktime/jdirect/PrimitivesLib.html">PrimitivesLib</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../quicktime/jdirect/PrimitivesLib.html#JDirect_MacOSX">JDirect_MacOSX</A>, <A HREF="../../quicktime/jdirect/PrimitivesLib.html#libraryInstance">libraryInstance</A></CODE></TD></TR></TABLE>&nbsp;<!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/util/QTByteObject.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object&nbsp;obj)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the two objects have the same value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../quicktime/util/QTByteObject.html">QTByteObject</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/util/QTByteObject.html#fromArray(byte[])">fromArray</A></B>(byte[]&nbsp;ar)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This call will return a QTByteObject which becomes a proxy for the specified byte array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/util/QTByteObject.html#getBytes()">getBytes</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the byte array containing the packed native object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/util/QTByteObject.html#getSize()">getSize</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of the represented native object.</TD>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?