|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectonbon.bx06.file.BxFileReader<C>
C
- 驅動。public final class BxFileReader<C>
BX 文件读取程式。
Constructor Summary | |
---|---|
BxFileReader(Bx6GController controller,
Bx6GScreenProfile screenProfile,
C owner)
建构子。 |
Method Summary | |
---|---|
void |
addListener(BxFileReaderListener<C> listener)
增加监听器。 |
List<onbon.bx06.message.ofs.ReturnDirBlock.FileInfo> |
browse()
读取控制器上目前的文件清单。 |
List<onbon.bx06.message.ofs.ReturnDirBlock.FileInfo> |
browse(onbon.bx06.message.common.FileType fileType,
int dirSize)
读取控制器上目前特定类型的文件清单。 |
void |
clearListeners()
清除所有监听器。 |
byte[] |
read(String fileName,
boolean ofs)
读取控制器上的文件。 |
onbon.bx06.message.file.ControllerConfigFile |
readConfig(String configFile)
读取控制器上的屏幕参数文件。 |
onbon.bx06.message.file.ProgramFile |
readProgram(int programId)
同步读取控制器上的节目。 |
boolean |
readProgram(int programId,
String savePath)
读取控制器上的节目并存档。 |
onbon.bx06.message.file.ProgramFile |
readProgram(String programFile)
同步读取控制器上的节目。 |
boolean |
readProgram(String programFile,
String savePath)
读取控制器上的节目并存档。 |
void |
readProgramAsync(int programId)
非同步读取控制器上的节目。 |
void |
readProgramAsync(int programId,
String savePath)
非同步读取控制器上的节目并存档。 |
void |
readProgramAsync(String programFile)
非同步读取控制器上的节目。 |
void |
readProgramAsync(String programFile,
String savePath)
非同步读取控制器上的节目并存档。 |
onbon.bx06.message.file.ProgramDataFile |
readProgramData(String programFile)
同步读取控制器上的节目。 |
void |
removeListener(BxFileReaderListener<C> listener)
移除监听器。 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BxFileReader(Bx6GController controller, Bx6GScreenProfile screenProfile, C owner)
controller
- 控制器。screenProfile
- 屏幕规格。owner
- 驅動。Method Detail |
---|
public void addListener(BxFileReaderListener<C> listener)
listener
- 监听器。public void removeListener(BxFileReaderListener<C> listener)
listener
- 监听器。public void clearListeners()
public List<onbon.bx06.message.ofs.ReturnDirBlock.FileInfo> browse() throws Bx6GCommException
Bx6GCommException
- 通讯发生异常。public List<onbon.bx06.message.ofs.ReturnDirBlock.FileInfo> browse(onbon.bx06.message.common.FileType fileType, int dirSize) throws Bx6GCommException
fileType
- NULL 表示全部的文件重类。dirSize
- 一次最多读取多少个文件目录。
Bx6GCommException
- 通讯发生异常。public boolean readProgram(int programId, String savePath)
programId
- 节目编号,0-999。savePath
- 本地储存完整的档案名称。
public boolean readProgram(String programFile, String savePath)
programFile
- 节目名称。savePath
- 本地储存完整的档案名称。
public onbon.bx06.message.file.ControllerConfigFile readConfig(String configFile) throws Bx6GException
configFile
- 屏幕参数文件名称。
Bx6GException
- 读取发生异常。public byte[] read(String fileName, boolean ofs) throws Bx6GException
fileName
- 控制器上的文件名称。ofs
- 此文件是否为节目。
Bx6GException
- 读取发生异常。public onbon.bx06.message.file.ProgramFile readProgram(int programId) throws Bx6GException
programId
- 节目编号,0-999。
Bx6GException
- 读取发生异常。public onbon.bx06.message.file.ProgramFile readProgram(String programFile) throws Bx6GException
programFile
- 节目名称。
Bx6GException
- 读取发生异常。public onbon.bx06.message.file.ProgramDataFile readProgramData(String programFile) throws Bx6GException
programFile
- 节目名称。
Bx6GException
- 读取发生异常。public void readProgramAsync(int programId)
programId
- 节目编号,0-999。public void readProgramAsync(String programFile)
programFile
- 节目名称。public void readProgramAsync(int programId, String savePath)
programId
- 节目编号,0-999。savePath
- 本地储存完整的档案名称。public void readProgramAsync(String programFile, String savePath)
programFile
- 节目名称。savePath
- 本地储存完整的档案名称。
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |