private int[] getRecordOffsets(int[] contentLengths) {
protected int[] getRecordOffsets(int[] contentLengths) {
    private int[] getRecordOffsets(int[] contentLengths) {        int[] offsets = new int[contentLengths.length];        int pos = 50;        for (int i = 0; i < contentLengths.length; i++) {            offsets[i] = pos;            pos += contentLengths[i] + 4;        }        return offsets;    }