106 |
} |
} |
107 |
} |
} |
108 |
|
|
109 |
private final int readLeByte() throws IOException |
private int readLeByte() throws IOException |
110 |
{ |
{ |
111 |
if (avail <= 0) |
if (avail <= 0) |
112 |
{ |
{ |
120 |
/** |
/** |
121 |
* Read an unsigned short in little endian byte order. |
* Read an unsigned short in little endian byte order. |
122 |
*/ |
*/ |
123 |
private final int readLeShort() throws IOException |
private int readLeShort() throws IOException |
124 |
{ |
{ |
125 |
return readLeByte() | (readLeByte() << 8); |
return readLeByte() | (readLeByte() << 8); |
126 |
} |
} |
128 |
/** |
/** |
129 |
* Read an int in little endian byte order. |
* Read an int in little endian byte order. |
130 |
*/ |
*/ |
131 |
private final int readLeInt() throws IOException |
private int readLeInt() throws IOException |
132 |
{ |
{ |
133 |
return readLeShort() | (readLeShort() << 16); |
return readLeShort() | (readLeShort() << 16); |
134 |
} |
} |