/* */ 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 QTVRNodeLocation extends QTVRAtom
/* */ {
/* 36 */ private static boolean apriori = QTSession.apriori();
/* */ private static final int kNativeSize = 24;
/* */ private static EndianDescriptor ed;
/* */ static final long serialVersionUID = -2055560448381571608L;
/* */
/* */ public QTVRNodeLocation()
/* */ {
/* 47 */ super(24);
/* */ }
/* */
/* */ public QTVRNodeLocation(byte[] paramArrayOfByte)
/* */ throws QTException
/* */ {
/* 54 */ super(paramArrayOfByte, 24);
/* */ }
/* */
/* */ protected int getNativeSize() {
/* 58 */ return 24;
/* */ }
/* */
/* */ protected static EndianDescriptor makeED() {
/* 62 */ EndianDescriptor localEndianDescriptor = new EndianDescriptor(0);
/* */
/* 64 */ EndianFlipSpec localEndianFlipSpec1 = new EndianFlipSpec(0, 2, 2);
/* 65 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec1);
/* */
/* 67 */ EndianFlipSpec localEndianFlipSpec2 = new EndianFlipSpec(4, 4, 5);
/* 68 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec2);
/* 69 */ return localEndianDescriptor;
/* */ }
/* */
/* */ public static EndianDescriptor getEndianDescriptor() {
/* 73 */ if (ed == null)
/* 74 */ ed = makeED();
/* 75 */ return ed;
/* */ }
/* */
/* */ protected void readObject(ObjectInputStream paramObjectInputStream)
/* */ throws IOException
/* */ {
/* 83 */ this.bytes = new byte[24];
/* 84 */ QTVRNodeLocation localQTVRNodeLocation = new QTVRNodeLocation();
/* 85 */ paramObjectInputStream.read(localQTVRNodeLocation.getBytes());
/* 86 */ System.arraycopy(localQTVRNodeLocation.getBytes(), 0, getBytes(), 0, this.bytes.length);
/* */ }
/* */
/* */ protected void writeObject(ObjectOutputStream paramObjectOutputStream) throws IOException {
/* 90 */ QTVRNodeLocation localQTVRNodeLocation = (QTVRNodeLocation)clone();
/* 91 */ paramObjectOutputStream.write(localQTVRNodeLocation.getBytes());
/* */ }
/* */
/* */ public Object clone()
/* */ {
/* */ try {
/* 97 */ return new QTVRNodeLocation(this.bytes);
/* */ } catch (QTException localQTException) {
/* 99 */ throw new QTRuntimeException(localQTException);
/* */ }
/* */ }
/* */
/* */ public int getNodeType()
/* */ {
/* 107 */ return getIntAt(4);
/* */ }
/* */
/* */ public void setNodeType(int paramInt)
/* */ {
/* 112 */ setIntAt(4, paramInt);
/* */ }
/* */
/* */ public void setNodeType(String paramString)
/* */ {
/* 117 */ setIntAt(4, QTUtils.toOSType(paramString));
/* */ }
/* */
/* */ public int getLocationFlags()
/* */ {
/* 122 */ return getIntAt(8);
/* */ }
/* */
/* */ public void setLocationFlags(int paramInt)
/* */ {
/* 127 */ setIntAt(8, paramInt);
/* */ }
/* */
/* */ public int getLocationData()
/* */ {
/* 132 */ return getIntAt(12);
/* */ }
/* */
/* */ public void setLocationData(int paramInt)
/* */ {
/* 137 */ setIntAt(12, paramInt);
/* */ }
/* */
/* */ public void setReserved1(int paramInt)
/* */ {
/* 142 */ setIntAt(16, paramInt);
/* */ }
/* */
/* */ public int getReserved1()
/* */ {
/* 147 */ return getIntAt(16);
/* */ }
/* */
/* */ public void setReserved2(int paramInt)
/* */ {
/* 152 */ setIntAt(20, paramInt);
/* */ }
/* */
/* */ public int getReserved2()
/* */ {
/* 157 */ return getIntAt(20);
/* */ }
/* */
/* */ public String toString()
/* */ {
/* 164 */ return getClass().getName() + "[nodeType=" + QTUtils.fromOSType(getNodeType()) + ",locationFlags=" + getLocationFlags() + ",locationData=" + getLocationData() + "]";
/* */ }
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.vr.QTVRNodeLocation
* JD-Core Version: 0.6.2
*/