@Override
    public void record(Chunk chunk) {
        if (chunk.getType() == Types.BINARY) {
            switch (chunk.getChunkId()) {
                case 2:
                    guidStream = (ByteChunk) chunk;
                    break;
                case 3:
                    entryStream = (ByteChunk) chunk;
                    break;
                case 4:
                    stringStream = (ByteChunk) chunk;
                    break;
            }
        }
        List<Chunk> chunkList = chunksById.computeIfAbsent(chunk.getChunkId(), k -> new ArrayList<>());
        chunkList.add(chunk);
    }
Called by the parser whenever a chunk is found.
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/msg/TikaNameIdChunks.java