|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ImgFileReader
For reading subfiles from the img. The focus of mkgmap is on writing, but some limited reading is needed for several operations.
Method Summary | |
---|---|
byte |
get()
Read in a single byte. |
byte[] |
get(int len)
Read in an arbitrary length sequence of bytes. |
int |
get3()
Get a 3byte signed quantity. |
java.lang.String |
getBase11str(byte firstChar,
char delimiter)
Read in a string of digits in the compressed base 11 format that is used for phone numbers in the POI section. |
char |
getChar()
Read in two bytes. |
int |
getInt()
Read in a 4 byte value. |
int |
getu3()
Get a 3byte unsigned quantity. |
java.lang.String |
getZString()
Read a zero terminated string from the file. |
long |
position()
Get the position. |
void |
position(long pos)
Set the position of the file. |
Methods inherited from interface java.io.Closeable |
---|
close |
Method Detail |
---|
long position()
void position(long pos)
pos
- The new position in the file.byte get() throws ReadFailedException
ReadFailedException
char getChar() throws ReadFailedException
ReadFailedException
int get3() throws ReadFailedException
ReadFailedException
- When the file cannot be read.int getu3() throws ReadFailedException
ReadFailedException
- When the file cannot be read.int getInt() throws ReadFailedException
ReadFailedException
byte[] get(int len) throws ReadFailedException
len
- The number of bytes to read.
ReadFailedException
java.lang.String getZString() throws ReadFailedException
ReadFailedException
- For failures.java.lang.String getBase11str(byte firstChar, char delimiter)
delimiter
- This will replace all digit 11 characters. Usually a
'-' to separate numbers in a telephone. No doubt there is a different
standard in each country.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |