/* */ package quicktime.vr;
/* */
/* */ import java.io.IOException;
/* */ import java.io.ObjectInputStream;
/* */ import java.io.ObjectOutputStream;
/* */ import quicktime.QTException;
/* */ import quicktime.QTRuntimeException;
/* */ import quicktime.QTSession;
/* */ import quicktime.util.EndianDescriptor;
/* */ import quicktime.util.EndianFlipSpec;
/* */
/* */ public final class QTVRWorldHeader extends QTVRAtom
/* */ {
/* 36 */ private static boolean apriori = QTSession.apriori();
/* */ private static final int kNativeSize = 24;
/* */ static final long serialVersionUID = -8701506970872651584L;
/* */ private static EndianDescriptor ed;
/* */
/* */ public QTVRWorldHeader()
/* */ {
/* 47 */ super(24);
/* */ }
/* */
/* */ public QTVRWorldHeader(byte[] paramArrayOfByte)
/* */ throws QTException
/* */ {
/* 55 */ super(paramArrayOfByte, 24);
/* */ }
/* */
/* */ protected int getNativeSize() {
/* 59 */ return 24;
/* */ }
/* */
/* */ protected void readObject(ObjectInputStream paramObjectInputStream)
/* */ throws IOException
/* */ {
/* 65 */ this.bytes = new byte[24];
/* 66 */ QTVRWorldHeader localQTVRWorldHeader = new QTVRWorldHeader();
/* 67 */ paramObjectInputStream.read(localQTVRWorldHeader.getBytes());
/* 68 */ System.arraycopy(localQTVRWorldHeader.getBytes(), 0, getBytes(), 0, this.bytes.length);
/* */ }
/* */
/* */ protected void writeObject(ObjectOutputStream paramObjectOutputStream) throws IOException {
/* 72 */ QTVRWorldHeader localQTVRWorldHeader = (QTVRWorldHeader)clone();
/* 73 */ paramObjectOutputStream.write(localQTVRWorldHeader.getBytes());
/* */ }
/* */
/* */ public Object clone()
/* */ {
/* */ try {
/* 79 */ return new QTVRWorldHeader(this.bytes);
/* */ } catch (QTException localQTException) {
/* 81 */ throw new QTRuntimeException(localQTException);
/* */ }
/* */ }
/* */
/* */ protected static EndianDescriptor makeED()
/* */ {
/* 88 */ EndianDescriptor localEndianDescriptor = new EndianDescriptor(0);
/* */
/* 90 */ EndianFlipSpec localEndianFlipSpec1 = new EndianFlipSpec(0, 2, 2);
/* 91 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec1);
/* */
/* 93 */ EndianFlipSpec localEndianFlipSpec2 = new EndianFlipSpec(4, 4, 5);
/* 94 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec2);
/* */
/* 96 */ return localEndianDescriptor;
/* */ }
/* */
/* */ public int getNameAtomID()
/* */ {
/* 104 */ return getIntAt(4);
/* */ }
/* */
/* */ public void setNameAtomID(int paramInt)
/* */ {
/* 109 */ setIntAt(4, paramInt);
/* */ }
/* */
/* */ public int getDefaultNodeID()
/* */ {
/* 114 */ return getIntAt(8);
/* */ }
/* */
/* */ public void setDefaultNodeID(int paramInt)
/* */ {
/* 119 */ setIntAt(8, paramInt);
/* */ }
/* */
/* */ public int getVRWorldFlags()
/* */ {
/* 124 */ return getIntAt(12);
/* */ }
/* */
/* */ public void setVRWorldFlags(int paramInt)
/* */ {
/* 129 */ setIntAt(12, paramInt);
/* */ }
/* */
/* */ public void setReserved1(int paramInt)
/* */ {
/* 134 */ setIntAt(16, paramInt);
/* */ }
/* */
/* */ public int getReserved1()
/* */ {
/* 139 */ return getIntAt(16);
/* */ }
/* */
/* */ public void setReserved2(int paramInt)
/* */ {
/* 144 */ setIntAt(20, paramInt);
/* */ }
/* */
/* */ public int getReserved2()
/* */ {
/* 149 */ return getIntAt(20);
/* */ }
/* */
/* */ public String toString()
/* */ {
/* 156 */ return getClass().getName() + "[nameAtomID=" + getNameAtomID() + ",defaultNodeID=" + getDefaultNodeID() + ",vrWorldFlags=" + getVRWorldFlags() + "]";
/* */ }
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.vr.QTVRWorldHeader
* JD-Core Version: 0.6.2
*/