- java.lang.Object
-
- tvbrowser.core.filters.SingleChannelFilter
-
- All Implemented Interfaces:
ProgramFilter
public class SingleChannelFilter extends java.lang.Object implements ProgramFilter
-
-
Constructor Summary
Constructors Constructor Description SingleChannelFilter(Channel channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(Program program)
boolean
containsChannel(Channel ch)
java.lang.String
getName()
boolean
isValidChannel()
void
store(java.lang.String id, java.io.ObjectOutputStream out)
java.lang.String
toString()
-
-
-
Constructor Detail
-
SingleChannelFilter
public SingleChannelFilter(Channel channel)
-
-
Method Detail
-
accept
public boolean accept(Program program)
- Specified by:
accept
in interfaceProgramFilter
- Parameters:
program
- the program to be checked- Returns:
- true, if the filter accepts the specified program
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceProgramFilter
- Returns:
- the name of this filter
-
store
public void store(java.lang.String id, java.io.ObjectOutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
isValidChannel
public boolean isValidChannel()
-
containsChannel
public boolean containsChannel(Channel ch)
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfaceProgramFilter
- Overrides:
toString
in classjava.lang.Object
-
-