Package be.lmenten.avr.binfmt.hex
Class IntelHexReader
java.lang.Object
java.io.Reader
java.io.FilterReader
java.io.PushbackReader
be.lmenten.avr.binfmt.hex.IntelHexReader
- All Implemented Interfaces:
HexImage
,HexImageReader
,Closeable
,AutoCloseable
,Readable
-
Field Summary
Fields inherited from class java.io.FilterReader
in
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
eof()
int
int
boolean
boolean
int
readByte()
long
LITTLE ENDIANint
readWord()
LITTLE ENDIANvoid
setEndianness(HexDataEndianness endianness)
Methods inherited from class java.io.PushbackReader
mark, markSupported, read, read, ready, reset, skip, unread, unread, unread
Methods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
Constructor Details
-
IntelHexReader
- Throws:
IOException
-
IntelHexReader
- Throws:
IOException
-
-
Method Details
-
getFileName
-
setEndianness
- Specified by:
setEndianness
in interfaceHexImage
-
getEndianness
- Specified by:
getEndianness
in interfaceHexImage
-
eof
- Specified by:
eof
in interfaceHexImageReader
- Throws:
IOException
-
readByte
- Specified by:
readByte
in interfaceHexImageReader
- Throws:
IOException
-
readWord
LITTLE ENDIAN- Specified by:
readWord
in interfaceHexImageReader
- Returns:
- Throws:
IOException
-
readDWord
LITTLE ENDIAN- Specified by:
readDWord
in interfaceHexImageReader
- Returns:
- Throws:
IOException
-
getAddress
public int getAddress()- Specified by:
getAddress
in interfaceHexImageReader
-
hasLinearAddress
public boolean hasLinearAddress()- Specified by:
hasLinearAddress
in interfaceHexImageReader
-
hasSegmentAddress
public boolean hasSegmentAddress()- Specified by:
hasSegmentAddress
in interfaceHexImageReader
-
getStartAddress
public int getStartAddress()- Specified by:
getStartAddress
in interfaceHexImageReader
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classPushbackReader
- Throws:
IOException
-