import java.io.PipedInputStream;
import java.io.PipedOutputStream;
import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import net.pterodactylus.sonitus.data.Controller;
import net.pterodactylus.sonitus.data.Filter;
import net.pterodactylus.sonitus.data.Metadata;
+import com.google.common.eventbus.EventBus;
import com.google.common.io.Closeables;
/**
*/
public class DummyFilter implements Filter {
+ /** The name of this filter. */
+ private final String name;
+
+ /** The event bus. */
+ private final EventBus eventBus;
+
/** The input stream from which to read. */
private InputStream inputStream;
/** The current metadata. */
private Metadata metadata;
+ /**
+ * Creates a new dummy filter with the given name.
+ *
+ * @param eventBus
+ * The event bus
+ * @param name
+ * The name of the filter
+ */
+ public DummyFilter(EventBus eventBus, String name) {
+ this.eventBus = eventBus;
+ this.name = name;
+ }
+
+ //
+ // CONTROLLED METHODS
+ //
+
+ @Override
+ public String name() {
+ return name;
+ }
+
+ @Override
+ public List<Controller<?>> controllers() {
+ return Collections.emptyList();
+ }
+
//
// FILTER METHODS
//