00001 package net.threebit.jvr;
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 public class DV_TPT extends JVRBaseClass {
00028
00029 public int rfu;
00030 public int tp_data;
00031 public int tp_flags;
00032 public int tp_length;
00033 public int tp_termno;
00034 public int tp_type;
00035
00036
00037
00038
00039 public String toString() {
00040 return
00041 "DV_TPT{" +
00042 "tp_type=" + tp_type+"; " +
00043 "tp_termno=" + tp_termno+"; " +
00044 "tp_length=" + tp_length+"; " +
00045 "tp_flags=" + tp_flags+"; " +
00046 "tp_data=" + tp_data +
00047 "}"
00048 ;
00049 }
00050
00051
00052
00053
00054 public static String toString (DV_TPT[] tpt) {
00055 if (tpt == null) { return "DV_TPT[]{null};"; }
00056 if (tpt.length == 0) { return "DV_TPT[0]{};"; }
00057 String s = "DV_TPT["+tpt.length+"]{\n";
00058 for (int x = 0; x < tpt.length; x++) { s += ""+tpt[x]; }
00059 s += "}";
00060 return s;
00061 }
00062
00063
00064
00065
00066 public static DV_TPT[] newArray (int length) {
00067 if (length <= 0) { throw new AssertionError("length must be greater than 0."); }
00068 DV_TPT result[] = new DV_TPT[length];
00069 for (int x = 0; x < length; x++) {
00070 result[x] = new DV_TPT();
00071 }
00072 return result;
00073 }
00074
00075 }