380381382383384385386
public Filter getFilter(int index) throws FilterException { synchronized ( filterMutex ) { if ( index >= 0 && index < filters.length ) return filters[index]; } throw new FilterException("Filter not found at index '"+index+"'"); }
404405406407408409410
System.arraycopy(filters, i + 1, newFilters, i, newFilters.length - i); filters = newFilters; return filter; } } throw new FilterException("Could not remove Filter"); }