* chunk. <br>
* @throws IOException
* read errors.
*/
private EncodingChunk parseData(RandomAccessFile raf) throws IOException {
EncodingChunk result = null;
long chunkStart = raf.getFilePointer();
GUID guid = Utils.readGUID(raf);
if (GUID.GUID_ENCODING.equals(guid)) {
BigInteger chunkLen = Utils.readBig64(raf);
result = new EncodingChunk(chunkStart, chunkLen);
// Can't be interpreted
/*
* What do I think of this data, well it seems to be another GUID.
* Then followed by a UINT16 indicating a length of data following
* (by half). My test files just had the length of one and a two
* bytes zero.
*/
raf.skipBytes(20);
/*
* Read the number of strings which will follow
*/
int stringCount = Utils.readUINT16(raf);
/*
* Now reading the specified amount of strings.
*/
for (int i = 0; i < stringCount; i++) {
result.addString(Utils.readCharacterSizedString(raf));
}
}
return result;
}