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.FileNotFoundException
public 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.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException