public int read(DataInputStream istream) throws IOException { preRead(); int retVal = 0; // read prgmInfoLength for (; istream.available() > 0; ) { CaDescriptor temp; temp = new CaDescriptor(); retVal += temp.read(istream); prgmInfoLength.add(temp); } postRead(); return retVal; }
public int read(DataInputStream istream) throws IOException { preRead(); int retVal = 0; // read caPmtCmdId { caPmtCmdId = (short) (istream.readUnsignedByte()); retVal += 1; } // read programInfoLength for (; istream.available() > 0; ) { CaDescriptor temp; temp = new CaDescriptor(); retVal += temp.read(istream); programInfoLength.add(temp); } postRead(); return retVal; }