/* */ 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;
/* */ import quicktime.util.QTUtils;
/* */
/* */ public final class QTVRNodeHeader extends QTVRAtom
/* */ {
/* 38 */ private static boolean apriori = QTSession.apriori();
/* */ private static final int kNativeSize = 28;
/* */ static final long serialVersionUID = 5440311233545515486L;
/* */ private static EndianDescriptor ed;
/* */
/* */ public QTVRNodeHeader()
/* */ {
/* 49 */ super(28);
/* */ }
/* */
/* */ public QTVRNodeHeader(byte[] paramArrayOfByte)
/* */ throws QTException
/* */ {
/* 57 */ super(paramArrayOfByte, 28);
/* */ }
/* */
/* */ protected int getNativeSize() {
/* 61 */ return 28;
/* */ }
/* */
/* */ protected void readObject(ObjectInputStream paramObjectInputStream)
/* */ throws IOException
/* */ {
/* 67 */ this.bytes = new byte[28];
/* 68 */ QTVRNodeHeader localQTVRNodeHeader = new QTVRNodeHeader();
/* 69 */ paramObjectInputStream.read(localQTVRNodeHeader.getBytes());
/* 70 */ System.arraycopy(localQTVRNodeHeader.getBytes(), 0, getBytes(), 0, this.bytes.length);
/* */ }
/* */
/* */ protected void writeObject(ObjectOutputStream paramObjectOutputStream) throws IOException {
/* 74 */ QTVRNodeHeader localQTVRNodeHeader = (QTVRNodeHeader)clone();
/* 75 */ paramObjectOutputStream.write(localQTVRNodeHeader.getBytes());
/* */ }
/* */
/* */ public Object clone()
/* */ {
/* */ try {
/* 81 */ return new QTVRNodeHeader(this.bytes);
/* */ } catch (QTException localQTException) {
/* 83 */ throw new QTRuntimeException(localQTException);
/* */ }
/* */ }
/* */
/* */ protected static EndianDescriptor makeED()
/* */ {
/* 89 */ EndianDescriptor localEndianDescriptor = new EndianDescriptor(0);
/* */
/* 91 */ EndianFlipSpec localEndianFlipSpec1 = new EndianFlipSpec(0, 2, 2);
/* 92 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec1);
/* */
/* 94 */ EndianFlipSpec localEndianFlipSpec2 = new EndianFlipSpec(4, 4, 6);
/* 95 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec2);
/* 96 */ return localEndianDescriptor;
/* */ }
/* */
/* */ public static EndianDescriptor getEndianDescriptor() {
/* 100 */ if (ed == null)
/* 101 */ ed = makeED();
/* 102 */ return ed;
/* */ }
/* */
/* */ public int getNodeType()
/* */ {
/* 108 */ return getIntAt(4);
/* */ }
/* */
/* */ public void setNodeType(int paramInt)
/* */ {
/* 113 */ setIntAt(4, paramInt);
/* */ }
/* */
/* */ public void setNodeType(String paramString)
/* */ {
/* 118 */ setIntAt(4, QTUtils.toOSType(paramString));
/* */ }
/* */
/* */ public int getNodeID()
/* */ {
/* 123 */ return getIntAt(8);
/* */ }
/* */
/* */ public void setNodeID(int paramInt)
/* */ {
/* 128 */ setIntAt(8, paramInt);
/* */ }
/* */
/* */ public int getNameAtomID()
/* */ {
/* 133 */ return getIntAt(12);
/* */ }
/* */
/* */ public void setNameAtomID(int paramInt)
/* */ {
/* 138 */ setIntAt(12, paramInt);
/* */ }
/* */
/* */ public int getCommentAtomID()
/* */ {
/* 143 */ return getIntAt(16);
/* */ }
/* */
/* */ public void setCommentAtomID(int paramInt)
/* */ {
/* 148 */ setIntAt(16, paramInt);
/* */ }
/* */
/* */ public void setReserved1(int paramInt)
/* */ {
/* 153 */ setIntAt(20, paramInt);
/* */ }
/* */
/* */ public int getReserved1()
/* */ {
/* 158 */ return getIntAt(20);
/* */ }
/* */
/* */ public void setReserved2(int paramInt)
/* */ {
/* 163 */ setIntAt(24, paramInt);
/* */ }
/* */
/* */ public int getReserved2()
/* */ {
/* 168 */ return getIntAt(24);
/* */ }
/* */
/* */ public String toString()
/* */ {
/* 175 */ return getClass().getName() + "[nodeType=" + QTUtils.fromOSType(getNodeType()) + ",nodeID=" + getNodeID() + ",nameAtomID=" + getNameAtomID() + ",commentAtomID" + getCommentAtomID() + "]";
/* */ }
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.vr.QTVRNodeHeader
* JD-Core Version: 0.6.2
*/