Exemplo n.º 1
0
  public int read(DataInputStream istream) throws IOException {
    preRead();
    int retVal = 0;

    // read header
    retVal += header.read(istream);
    // read length
    {
      length = (short) (istream.readUnsignedByte());
      retVal += 1;
    }
    // read programIndex
    {
      programIndex = (short) (istream.readUnsignedByte());
      retVal += 1;
    }
    // read txnId
    {
      txnId = (short) (istream.readUnsignedByte());
      retVal += 1;
    }
    // read ltsid
    {
      ltsid = (short) (istream.readUnsignedByte());
      retVal += 1;
    }
    // read programNumber
    {
      programNumber = istream.readUnsignedShort();
      retVal += 2;
    }
    // read sourceId
    {
      sourceId = istream.readUnsignedShort();
      retVal += 2;
    }
    // read caPmtCmdId
    {
      caPmtCmdId = (short) (istream.readUnsignedByte());
      retVal += 1;
    }
    // read bf2
    retVal += bf2.read(istream);
    // read StatusfieldCheckInstance
    if (getProgramInfoLength() != 0) {
      StatusfieldCheckInstance = new StatusfieldCheck(this);
      retVal += StatusfieldCheckInstance.read(istream);
    }
    // read CaEntries
    for (; istream.available() > 0; ) {
      CaPmtModeMsg temp;
      temp = new CaPmtModeMsg();
      retVal += temp.read(istream);
      CaEntries.add(temp);
    }

    postRead();
    return retVal;
  }
Exemplo n.º 2
0
  public int read(DataInputStream istream) throws IOException {
    preRead();
    int retVal = 0;

    // read bf1
    retVal += bf1.read(istream);
    // read programInfo
    {
      int iCount = getProgramInfoLength() + (0);
      byte[] ba = new byte[iCount];
      istream.readFully(ba);
      ByteArrayInputStream baTemp = new ByteArrayInputStream(ba);
      retVal += programInfo.read(new DataInputStream(baTemp));
    }

    postRead();
    return retVal;
  }
Exemplo n.º 3
0
  public int readNoHeader(DataInputStream istream) throws IOException {

    preRead();
    int retVal = 0;
    // read length
    {
      length = (short) (istream.readUnsignedByte());
      retVal += 1;
    }
    // read caPmtlisMngement
    {
      caPmtlisMngement = (short) (istream.readUnsignedByte());
      retVal += 1;
    }
    // read programNumber
    {
      programNumber = istream.readUnsignedShort();
      retVal += 2;
    }
    // read bf1
    retVal += bf1.read(istream);
    // read bf2
    retVal += bf2.read(istream);
    // read StatusfieldCheckInstance
    if (getProgramInfoLength() != 0) {
      StatusfieldCheckInstance = new StatusfieldCheck(this);
      retVal += StatusfieldCheckInstance.read(istream);
    }
    // read CaEntries
    for (; istream.available() > 0; ) {
      CaPmtModeMsg temp;
      temp = new CaPmtModeMsg();
      retVal += temp.read(istream);
      CaEntries.add(temp);
    }

    postRead();
    return retVal;
  }