public GenericChunk(ChunkType chunkType, IntReader reader) { startPosition = reader.getBytesRead() - 4; type = chunkType; try { size = reader.readInt(); readHeader(reader); } catch (IOException exception) { // TODO : Handle this better exception.printStackTrace(); } }
public GenericChunk(ChunkType chunkType, IntReader reader) { startPosition = reader.getBytesRead() - 4; type = chunkType; try { size = reader.readInt(); readHeader(reader); } catch (IOException exception) { // TODO : Handle this better exception.printStackTrace(); } }
public GenericChunk(ChunkType chunkType, IntReader reader) { startPosition = reader.getBytesRead() - 4; type = chunkType; try { size = reader.readInt(); readHeader(reader); } catch (IOException exception) { // TODO : Handle this better exception.printStackTrace(); } }
public GenericChunkSection(ChunkType chunkType, IntReader reader) { super(chunkType, reader); try { readSection(reader); reader.skip(Math.abs(reader.getBytesRead() - getStartPosition() - size)); } catch (IOException e) { // Catching this here allows us to continue reading e.printStackTrace(); } }
public GenericChunkSection(ChunkType chunkType, IntReader reader) { super(chunkType, reader); try { readSection(reader); reader.skip(Math.abs(reader.getBytesRead() - getStartPosition() - size)); } catch (IOException e) { // Catching this here allows us to continue reading e.printStackTrace(); } }
public GenericChunkSection(ChunkType chunkType, IntReader reader) { super(chunkType, reader); try { readSection(reader); reader.skip(Math.abs(reader.getBytesRead() - getStartPosition() - size)); } catch (IOException e) { // Catching this here allows us to continue reading e.printStackTrace(); } }
while ((size - reader.getBytesRead()) > 4) { if (header.getSize() != reader.getBytesRead()) { System.out.println("Potential issue as the bytes read is not equal to the amount of bytes in the file");
while ((size - reader.getBytesRead()) > 4) { if (header.getSize() != reader.getBytesRead()) { System.out.println("Potential issue as the bytes read is not equal to the amount of bytes in the file");
while ((size - reader.getBytesRead()) > 4) { if (header.getSize() != reader.getBytesRead()) { System.out.println("Potential issue as the bytes read is not equal to the amount of bytes in the file");