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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleaneof()intintbooleanbooleanintreadByte()longLITTLE ENDIANintreadWord()LITTLE ENDIANvoidsetEndianness(HexDataEndianness endianness)Methods inherited from class java.io.PushbackReader
mark, markSupported, read, read, ready, reset, skip, unread, unread, unreadMethods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
Constructor Details
-
IntelHexReader
- Throws:
IOException
-
IntelHexReader
- Throws:
IOException
-
-
Method Details
-
getFileName
-
setEndianness
- Specified by:
setEndiannessin interfaceHexImage
-
getEndianness
- Specified by:
getEndiannessin interfaceHexImage
-
eof
- Specified by:
eofin interfaceHexImageReader- Throws:
IOException
-
readByte
- Specified by:
readBytein interfaceHexImageReader- Throws:
IOException
-
readWord
LITTLE ENDIAN- Specified by:
readWordin interfaceHexImageReader- Returns:
- Throws:
IOException
-
readDWord
LITTLE ENDIAN- Specified by:
readDWordin interfaceHexImageReader- Returns:
- Throws:
IOException
-
getAddress
public int getAddress()- Specified by:
getAddressin interfaceHexImageReader
-
hasLinearAddress
public boolean hasLinearAddress()- Specified by:
hasLinearAddressin interfaceHexImageReader
-
hasSegmentAddress
public boolean hasSegmentAddress()- Specified by:
hasSegmentAddressin interfaceHexImageReader
-
getStartAddress
public int getStartAddress()- Specified by:
getStartAddressin interfaceHexImageReader
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classPushbackReader- Throws:
IOException
-