public final class BxFileReader<C>
extends java.lang.Object
| Constructor and Description |
|---|
BxFileReader(Bx5GController controller,
Bx5GScreenProfile screenProfile,
C owner)
建构子。
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(BxFileReaderListener<C> listener)
增加监听器。
|
java.util.List<onbon.bx05.message.ofs.ReturnDirBlock.FileInfo> |
browse()
读取控制器上目前的文件清单。
|
java.util.List<onbon.bx05.message.ofs.ReturnDirBlock.FileInfo> |
browse(onbon.bx05.message.common.FileType fileType,
int dirSize)
读取控制器上目前特定类型的文件清单。
|
void |
clearListeners()
清除所有监听器。
|
byte[] |
read(java.lang.String fileName,
boolean ofs)
读取控制器上的文件。
|
onbon.bx05.message.file.ControllerConfigFile |
readConfig(java.lang.String configFile)
读取控制器上的屏幕参数文件。
|
onbon.bx05.message.file.ProgramFile |
readProgram(int programId)
同步读取控制器上的节目。
|
boolean |
readProgram(int programId,
java.lang.String savePath)
读取控制器上的节目并存档。
|
onbon.bx05.message.file.ProgramFile |
readProgram(java.lang.String programFile)
同步读取控制器上的节目。
|
boolean |
readProgram(java.lang.String programFile,
java.lang.String savePath)
读取控制器上的节目并存档。
|
void |
readProgramAsync(int programId)
非同步读取控制器上的节目。
|
void |
readProgramAsync(int programId,
java.lang.String savePath)
非同步读取控制器上的节目并存档。
|
void |
readProgramAsync(java.lang.String programFile)
非同步读取控制器上的节目。
|
void |
readProgramAsync(java.lang.String programFile,
java.lang.String savePath)
非同步读取控制器上的节目并存档。
|
void |
removeListener(BxFileReaderListener<C> listener)
移除监听器。
|
public BxFileReader(Bx5GController controller, Bx5GScreenProfile screenProfile, C owner)
controller - 控制器。public void addListener(BxFileReaderListener<C> listener)
listener - 监听器。public java.util.List<onbon.bx05.message.ofs.ReturnDirBlock.FileInfo> browse()
throws Bx5GCommException
Bx5GCommException - 通讯发生异常。public java.util.List<onbon.bx05.message.ofs.ReturnDirBlock.FileInfo> browse(onbon.bx05.message.common.FileType fileType,
int dirSize)
throws Bx5GCommException
fileType - NULL 表示全部的文件重类。dirSize - 一次最多读取多少个文件目录。Bx5GCommException - 通讯发生异常。public void clearListeners()
public byte[] read(java.lang.String fileName,
boolean ofs)
throws Bx5GException
fileName - 控制器上的文件名称。ofs - 此文件是否为节目。Bx5GExceptionpublic onbon.bx05.message.file.ControllerConfigFile readConfig(java.lang.String configFile)
throws Bx5GException
configFile - 屏幕参数文件名称。Bx5GException - 读取发生错误。public onbon.bx05.message.file.ProgramFile readProgram(int programId)
throws Bx5GException
programId - 节目编号,0-999。Bx5GException - 读取发生异常。public boolean readProgram(int programId,
java.lang.String savePath)
programId - 节目编号,0-999。savePath - 本地储存完整的档案名称。public onbon.bx05.message.file.ProgramFile readProgram(java.lang.String programFile)
throws Bx5GException
programFile - 节目名称。Bx5GExceptionpublic boolean readProgram(java.lang.String programFile,
java.lang.String savePath)
programFile - 节目名称。savePath - 本地储存完整的档案名称。public void readProgramAsync(int programId)
programId - 节目编号,0-999。public void readProgramAsync(int programId,
java.lang.String savePath)
programId - 节目编号,0-999。savePath - 本地储存完整的档案名称。public void readProgramAsync(java.lang.String programFile)
programFile - 节目名称。public void readProgramAsync(java.lang.String programFile,
java.lang.String savePath)
programFile - 节目名称。savePath - 本地储存完整的档案名称。public void removeListener(BxFileReaderListener<C> listener)
listener - 监听器。