Ensures normalization on waitfe/fc-xml operations
[anna.git] / source / xml / Compressor.cpp
1 // ANNA - Anna is Not Nothingness Anymore                                                         //
2 //                                                                                                //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
4 //                                                                                                //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite                           //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7
8
9 #include <arpa/inet.h>
10 #include <ctype.h>
11
12 #include <anna/xml/Compressor.hpp>
13 #include <anna/xml/Document.hpp>
14
15 using namespace std;
16 using namespace anna;
17
18 const DataBlock& xml::Compressor::apply(const xml::Document& docXML)
19 throw(RuntimeException) {
20   return ZBlock::compress(docXML.getContent());
21 }