Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

src/net/threebit/jvr/DV_TPT.java

Go to the documentation of this file.
00001 package net.threebit.jvr;
00002 
00003 /*
00004  * $Id: DV_TPT.java,v 1.6 2004/07/02 18:11:37 kevino Exp $
00005  *
00006  * Copyright (c) 2003,2004 Kevin O'Donnell
00007  * 
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public
00010  * License as published by the Free Software Foundation; either
00011  * version 2.1 of the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307,  USA.
00021  */
00022 
00023 /**
00024  * Java representation of the DV_TPT struct.
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 }

Generated on Sat Jul 16 03:47:34 2005 for JVR by doxygen 1.3.5