class MessageArchive implements AutoCloseable {

	private int getDataSize(byte[] header) {
		int size;
		size = header[2];
		size += BytesUtil.bytesToShort(BytesUtil.copyOfRange(header, 3, 5));
		size += header[5];
		size += header[6];
		size += header[7];
		size += header[8];
		size += header[9];
		size += header[10];
		size += BytesUtil.bytesToShort(BytesUtil.copyOfRange(header, 11, 13));
		size += BytesUtil.bytesToShort(BytesUtil.copyOfRange(header, 13, 15));
		size += header[15];
		size += BytesUtil.bytesToShort(BytesUtil.copyOfRange(header, 16, 18));
		size += BytesUtil.bytesToShort(BytesUtil.copyOfRange(header, 18, 20));
		size += BytesUtil.bytesToShort(BytesUtil.copyOfRange(header, 20, 22));
		size += header[22];
		size += header[23];
		size += header[24];
		size += BytesUtil.bytesToInteger(BytesUtil.copyOfRange(header, 25, 29));
		size += BytesUtil.bytesToInteger(BytesUtil.copyOfRange(header, 29, 33));
		return size;
	}

	public  MessageArchive(String name);

}