Package ucar.ma2

Class ArrayStructureComposite

  • All Implemented Interfaces:
    Iterable<StructureData>

    public class ArrayStructureComposite
    extends ArrayStructure
    An ArrayStructure compose of other ArrayStructures. Doesnt work because of read(StructureMembers.Member). this need to be withdrawn. int total = 0; List list = new ArrayList (msgs.size()); for (Message m : msgs) { ArrayStructure oneMess; if (!m.dds.isCompressed()) { MessageUncompressedDataReader reader = new MessageUncompressedDataReader(); oneMess = reader.readEntireMessage(s, protoMessage, m, raf, null); } else { MessageCompressedDataReader reader = new MessageCompressedDataReader(); oneMess = reader.readEntireMessage(s, protoMessage, m, raf, null); } list.add(oneMess); total += (int) oneMess.getSize(); } return (list.size() == 1) ? list.get(0) : new ArrayStructureComposite(sm, list, total);
    Since:
    Nov 19, 2009