public class StdHexFormatWriter
extends java.io.OutputStream
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
addr |
(package private) int |
addrHiWritten |
(package private) byte[] |
buffer |
(package private) java.io.Writer |
hexOutput |
(package private) int |
ixBuffer |
(package private) StringFormatter |
line |
| Constructor and Description |
|---|
StdHexFormatWriter(java.io.File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
setAddress(int value)
A new address flushes the output and begins a new line of output.
|
void |
write(int b) |
private void |
writeLine() |
final java.io.Writer hexOutput
final byte[] buffer
final StringFormatter line
int addr
int addrHiWritten
int ixBuffer
public StdHexFormatWriter(java.io.File file)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic void setAddress(int value)
throws java.io.IOException
value - The addressjava.io.IOException - if flush failes.private void writeLine()
throws java.io.IOException
java.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOException