Beispiel #1
0
 @Override
 public void configure(DocumentReader reader, Element element) {
   bitrates.clear();
   try {
     for (Element bitrate :
         DocumentReader.getChildElements(reader.getElementByPath(element, CONFIG_TAG))) {
       BitrateInfo bri = new BitrateInfo(bitrate);
       log.debug("Adding BitrateInfo " + bri);
       bitrates.put(bri.getName(), bri);
     }
   } catch (Exception ex) {
     log.error("Error in filter.xml:" + ex, ex);
   }
   log.info("Configured bit rate labeler " + bitrates);
   FilterUtils.propertiesConfigure(this, reader, element);
 }
Beispiel #2
0
 @Override
 public void clear() {
   backing.clear();
 }