public class HexOutputStream extends OutputStream
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_LINE_WIDTH |
| 构造器和说明 |
|---|
HexOutputStream(File hexFile) |
HexOutputStream(Writer hexWriter) |
| 限定符和类型 | 方法和说明 |
|---|---|
HexOutputStream |
blankChar(boolean includeBlankChar) |
void |
close() |
HexOutputStream |
lineWidth(int lineWidth) |
void |
newLine()
2015-5-5,为了允许外部强制换行而新增(需求:凯里消费文件头和数据长度不再是统一的64字节:而是头不变,数据变为96字节)。
|
void |
write(int b) |
flush, write, writepublic static final int DEFAULT_LINE_WIDTH
public HexOutputStream(Writer hexWriter)
public HexOutputStream(File hexFile) throws IOException
IOExceptionpublic HexOutputStream lineWidth(int lineWidth)
public HexOutputStream blankChar(boolean includeBlankChar)
public void write(int b)
throws IOException
write 在类中 OutputStreamIOExceptionpublic void newLine()
throws IOException
IOException - 异常public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 OutputStreamIOExceptionCopyright © 2022. All rights reserved.