public void decode(ByteBuffer buffer) throws IOException { getCompression().clear(); _headerSection.decode(buffer); _questionSection.decode(buffer); _answerSection.decode(buffer, _headerSection.getAnswerRecords()); _authoritySection.decode(buffer, _headerSection.getAuthorityRecords()); _additionalSection.decode(buffer, _headerSection.getAdditionalRecords()); }