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;
*/
public class DummyFilter implements Filter {
+ /** The name of this filter. */
+ private final String name;
+
/** 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 name
+ * The name of the filter
+ */
+ public DummyFilter(String name) {
+ this.name = name;
+ }
+
+ //
+ // CONTROLLED METHODS
+ //
+
+ @Override
+ public String name() {
+ return name;
+ }
+
+ @Override
+ public List<Controller<?>> controllers() {
+ return Collections.emptyList();
+ }
+
//
// FILTER METHODS
//