public final class BxFileWriter<C>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
logger |
| Constructor and Description |
|---|
BxFileWriter(Bx5GController controller,
C owner)
建构子。
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(BxFileWriterListener<C> listener)
新增监听器。
|
void |
clearListeners()
清除所有监听器。
|
void |
removeListener(BxFileWriterListener<C> listener)
移除监听器。
|
boolean |
writeConfig(ControllerConfigBxFile ccf)
同步将屏幕参数写入控制器。
|
boolean |
writeLogo(LogoBxFile logo)
同步将 LOGO 写入控制器。
|
void |
writeLogoAsync(LogoBxFile logo) |
int |
writePrograms(java.util.List<ProgramBxFile> pfs)
同步将节目组写入控制器。
|
void |
writeProgramsAsync(java.util.List<ProgramBxFile> pfs)
非同步将节目组写入控制器。
|
int |
writeProgramsQuickly(java.util.List<ProgramBxFile> pfs)
同步将节目组写入控制器,本方法不做任何检查。
|
public BxFileWriter(Bx5GController controller, C owner)
controller - 控制器。public void addListener(BxFileWriterListener<C> listener)
listener - 监听器。public void clearListeners()
public void removeListener(BxFileWriterListener<C> listener)
listener - 监听器。public boolean writeConfig(ControllerConfigBxFile ccf) throws Bx5GException
ccf - 屏幕参数。Bx5GException - 写入发生错误。public boolean writeLogo(LogoBxFile logo) throws Bx5GException
logo - LOGO 文件。Bx5GException - 写入发生错误。public void writeLogoAsync(LogoBxFile logo)
public int writePrograms(java.util.List<ProgramBxFile> pfs) throws Bx5GCommException, Bx5GException
pfs - 节目组。Bx5GException - 一般异常。Bx5GCommException - 通讯异常。public void writeProgramsAsync(java.util.List<ProgramBxFile> pfs)
pfs - 节目组。public int writeProgramsQuickly(java.util.List<ProgramBxFile> pfs) throws Bx5GCommException, Bx5GException
pfs - 节目组。Bx5GException - 一般异常。Bx5GCommException - 通讯异常。