IpfixMessage extends IpfixEntity implements IpfixDecodable { public List<IpfixDataSet> getDataSets() { return m_dataSets; } IpfixMessage(byte[] data); IpfixMessageHeader getHeader(); void setHeader(IpfixMessageHeader header); List<IpfixTemplateSet> getTemplateSets(); void setTemplateSets(List<IpfixTemplateSet> templateSets); void addTemplateSet(IpfixTemplateSet templateSet); List<IpfixOptionTemplateSet> getOptionTemplateSets(); void setOptionTemplateSets(List<IpfixOptionTemplateSet> optionTemplateSets); void addOptionTemplateSet(IpfixOptionTemplateSet optionTemplateSet); List<IpfixDataSet> getDataSets(); void setDataSets(List<IpfixDataSet> dataSets); void addDataSet(IpfixDataSet dataSet); @Override void decodeToIpfixEntity(byte[] data); @Override String toString();  }
@Test public void testGetDataSets() throws NotEnoughBytesException { String hex = "000A002C5A729A2100000013000101640003001C010300030001008D000400290002802A000400000E910000"; byte[] data = IpfixUtilities.hexStringToByteArray(hex); IpfixMessage message = new IpfixMessage(data); message.getDataSets(); }