public class GTBPartWriter
extends java.lang.Object
GTBWriter
限定符和类型 | 方法和说明 |
---|---|
void |
close()
关闭文件写入器
|
edu.sysu.pmglab.container.File |
getOutputFile()
获取输出文件
|
GTBWriter |
getWriter(int writerIndex)
获取指定索引的写入器
|
GTBPartWriter |
writeMeta(edu.sysu.pmglab.container.ByteCode key,
edu.sysu.pmglab.container.ByteCode value)
写入元信息
|
GTBPartWriter |
writeMeta(edu.sysu.pmglab.ccf.CCFMeta meta)
写入元信息
|
GTBPartWriter |
writeMeta(java.lang.String key,
java.lang.String value)
写入元信息
|
public GTBWriter getWriter(int writerIndex)
writerIndex
- 写入器索引public GTBPartWriter writeMeta(java.lang.String key, java.lang.String value)
key
- 元信息键value
- 元信息值public GTBPartWriter writeMeta(edu.sysu.pmglab.container.ByteCode key, edu.sysu.pmglab.container.ByteCode value)
key
- 元信息键value
- 元信息值public GTBPartWriter writeMeta(edu.sysu.pmglab.ccf.CCFMeta meta)
meta
- 元信息对象public void close() throws java.io.IOException
java.io.IOException
- IO 异常public edu.sysu.pmglab.container.File getOutputFile()