AbstractDeserializer.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */
  20. package org.openspcoop2.core.statistiche.utils.serializer;

  21. import org.openspcoop2.generic_project.exception.DeserializerException;

  22. import org.openspcoop2.core.statistiche.Statistica;
  23. import org.openspcoop2.core.statistiche.StatisticaMensile;
  24. import org.openspcoop2.core.statistiche.StatisticaContenuti;
  25. import org.openspcoop2.core.statistiche.StatisticaGiornaliera;
  26. import org.openspcoop2.core.statistiche.StatisticaSettimanale;
  27. import org.openspcoop2.core.statistiche.StatisticaOraria;
  28. import org.openspcoop2.core.statistiche.StatisticaInfo;

  29. import java.io.InputStream;
  30. import java.io.File;

  31. /**    
  32.  * XML Deserializer of beans
  33.  *
  34.  * @author Poli Andrea (poli@link.it)
  35.  * @author $Author$
  36.  * @version $Rev$, $Date$
  37.  */

  38. public abstract class AbstractDeserializer extends org.openspcoop2.generic_project.serializer.AbstractDeserializerBase {



  39.     /*
  40.      =================================================================================
  41.      Object: statistica
  42.      =================================================================================
  43.     */
  44.    
  45.     /**
  46.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.statistiche.Statistica}
  47.      *
  48.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.Statistica}
  49.      * @return Object type {@link org.openspcoop2.core.statistiche.Statistica}
  50.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  51.      */
  52.     public Statistica readStatistica(String fileName) throws DeserializerException {
  53.         return (Statistica) this.xmlToObj(fileName, Statistica.class);
  54.     }
  55.    
  56.     /**
  57.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.statistiche.Statistica}
  58.      *
  59.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.Statistica}
  60.      * @return Object type {@link org.openspcoop2.core.statistiche.Statistica}
  61.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  62.      */
  63.     public Statistica readStatistica(File file) throws DeserializerException {
  64.         return (Statistica) this.xmlToObj(file, Statistica.class);
  65.     }
  66.    
  67.     /**
  68.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.Statistica}
  69.      *
  70.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.Statistica}
  71.      * @return Object type {@link org.openspcoop2.core.statistiche.Statistica}
  72.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  73.      */
  74.     public Statistica readStatistica(InputStream in) throws DeserializerException {
  75.         return (Statistica) this.xmlToObj(in, Statistica.class);
  76.     }  
  77.    
  78.     /**
  79.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.Statistica}
  80.      *
  81.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.Statistica}
  82.      * @return Object type {@link org.openspcoop2.core.statistiche.Statistica}
  83.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  84.      */
  85.     public Statistica readStatistica(byte[] in) throws DeserializerException {
  86.         return (Statistica) this.xmlToObj(in, Statistica.class);
  87.     }  
  88.    
  89.     /**
  90.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.Statistica}
  91.      *
  92.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.Statistica}
  93.      * @return Object type {@link org.openspcoop2.core.statistiche.Statistica}
  94.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  95.      */
  96.     public Statistica readStatisticaFromString(String in) throws DeserializerException {
  97.         return (Statistica) this.xmlToObj(in.getBytes(), Statistica.class);
  98.     }  
  99.    
  100.    
  101.    
  102.     /*
  103.      =================================================================================
  104.      Object: statistica-mensile
  105.      =================================================================================
  106.     */
  107.    
  108.     /**
  109.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaMensile}
  110.      *
  111.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaMensile}
  112.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaMensile}
  113.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  114.      */
  115.     public StatisticaMensile readStatisticaMensile(String fileName) throws DeserializerException {
  116.         return (StatisticaMensile) this.xmlToObj(fileName, StatisticaMensile.class);
  117.     }
  118.    
  119.     /**
  120.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaMensile}
  121.      *
  122.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaMensile}
  123.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaMensile}
  124.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  125.      */
  126.     public StatisticaMensile readStatisticaMensile(File file) throws DeserializerException {
  127.         return (StatisticaMensile) this.xmlToObj(file, StatisticaMensile.class);
  128.     }
  129.    
  130.     /**
  131.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaMensile}
  132.      *
  133.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaMensile}
  134.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaMensile}
  135.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  136.      */
  137.     public StatisticaMensile readStatisticaMensile(InputStream in) throws DeserializerException {
  138.         return (StatisticaMensile) this.xmlToObj(in, StatisticaMensile.class);
  139.     }  
  140.    
  141.     /**
  142.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaMensile}
  143.      *
  144.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaMensile}
  145.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaMensile}
  146.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  147.      */
  148.     public StatisticaMensile readStatisticaMensile(byte[] in) throws DeserializerException {
  149.         return (StatisticaMensile) this.xmlToObj(in, StatisticaMensile.class);
  150.     }  
  151.    
  152.     /**
  153.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaMensile}
  154.      *
  155.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaMensile}
  156.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaMensile}
  157.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  158.      */
  159.     public StatisticaMensile readStatisticaMensileFromString(String in) throws DeserializerException {
  160.         return (StatisticaMensile) this.xmlToObj(in.getBytes(), StatisticaMensile.class);
  161.     }  
  162.    
  163.    
  164.    
  165.     /*
  166.      =================================================================================
  167.      Object: statistica-contenuti
  168.      =================================================================================
  169.     */
  170.    
  171.     /**
  172.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaContenuti}
  173.      *
  174.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaContenuti}
  175.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaContenuti}
  176.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  177.      */
  178.     public StatisticaContenuti readStatisticaContenuti(String fileName) throws DeserializerException {
  179.         return (StatisticaContenuti) this.xmlToObj(fileName, StatisticaContenuti.class);
  180.     }
  181.    
  182.     /**
  183.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaContenuti}
  184.      *
  185.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaContenuti}
  186.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaContenuti}
  187.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  188.      */
  189.     public StatisticaContenuti readStatisticaContenuti(File file) throws DeserializerException {
  190.         return (StatisticaContenuti) this.xmlToObj(file, StatisticaContenuti.class);
  191.     }
  192.    
  193.     /**
  194.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaContenuti}
  195.      *
  196.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaContenuti}
  197.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaContenuti}
  198.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  199.      */
  200.     public StatisticaContenuti readStatisticaContenuti(InputStream in) throws DeserializerException {
  201.         return (StatisticaContenuti) this.xmlToObj(in, StatisticaContenuti.class);
  202.     }  
  203.    
  204.     /**
  205.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaContenuti}
  206.      *
  207.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaContenuti}
  208.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaContenuti}
  209.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  210.      */
  211.     public StatisticaContenuti readStatisticaContenuti(byte[] in) throws DeserializerException {
  212.         return (StatisticaContenuti) this.xmlToObj(in, StatisticaContenuti.class);
  213.     }  
  214.    
  215.     /**
  216.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaContenuti}
  217.      *
  218.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaContenuti}
  219.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaContenuti}
  220.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  221.      */
  222.     public StatisticaContenuti readStatisticaContenutiFromString(String in) throws DeserializerException {
  223.         return (StatisticaContenuti) this.xmlToObj(in.getBytes(), StatisticaContenuti.class);
  224.     }  
  225.    
  226.    
  227.    
  228.     /*
  229.      =================================================================================
  230.      Object: statistica-giornaliera
  231.      =================================================================================
  232.     */
  233.    
  234.     /**
  235.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaGiornaliera}
  236.      *
  237.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaGiornaliera}
  238.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaGiornaliera}
  239.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  240.      */
  241.     public StatisticaGiornaliera readStatisticaGiornaliera(String fileName) throws DeserializerException {
  242.         return (StatisticaGiornaliera) this.xmlToObj(fileName, StatisticaGiornaliera.class);
  243.     }
  244.    
  245.     /**
  246.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaGiornaliera}
  247.      *
  248.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaGiornaliera}
  249.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaGiornaliera}
  250.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  251.      */
  252.     public StatisticaGiornaliera readStatisticaGiornaliera(File file) throws DeserializerException {
  253.         return (StatisticaGiornaliera) this.xmlToObj(file, StatisticaGiornaliera.class);
  254.     }
  255.    
  256.     /**
  257.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaGiornaliera}
  258.      *
  259.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaGiornaliera}
  260.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaGiornaliera}
  261.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  262.      */
  263.     public StatisticaGiornaliera readStatisticaGiornaliera(InputStream in) throws DeserializerException {
  264.         return (StatisticaGiornaliera) this.xmlToObj(in, StatisticaGiornaliera.class);
  265.     }  
  266.    
  267.     /**
  268.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaGiornaliera}
  269.      *
  270.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaGiornaliera}
  271.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaGiornaliera}
  272.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  273.      */
  274.     public StatisticaGiornaliera readStatisticaGiornaliera(byte[] in) throws DeserializerException {
  275.         return (StatisticaGiornaliera) this.xmlToObj(in, StatisticaGiornaliera.class);
  276.     }  
  277.    
  278.     /**
  279.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaGiornaliera}
  280.      *
  281.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaGiornaliera}
  282.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaGiornaliera}
  283.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  284.      */
  285.     public StatisticaGiornaliera readStatisticaGiornalieraFromString(String in) throws DeserializerException {
  286.         return (StatisticaGiornaliera) this.xmlToObj(in.getBytes(), StatisticaGiornaliera.class);
  287.     }  
  288.    
  289.    
  290.    
  291.     /*
  292.      =================================================================================
  293.      Object: statistica-settimanale
  294.      =================================================================================
  295.     */
  296.    
  297.     /**
  298.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaSettimanale}
  299.      *
  300.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaSettimanale}
  301.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaSettimanale}
  302.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  303.      */
  304.     public StatisticaSettimanale readStatisticaSettimanale(String fileName) throws DeserializerException {
  305.         return (StatisticaSettimanale) this.xmlToObj(fileName, StatisticaSettimanale.class);
  306.     }
  307.    
  308.     /**
  309.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaSettimanale}
  310.      *
  311.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaSettimanale}
  312.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaSettimanale}
  313.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  314.      */
  315.     public StatisticaSettimanale readStatisticaSettimanale(File file) throws DeserializerException {
  316.         return (StatisticaSettimanale) this.xmlToObj(file, StatisticaSettimanale.class);
  317.     }
  318.    
  319.     /**
  320.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaSettimanale}
  321.      *
  322.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaSettimanale}
  323.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaSettimanale}
  324.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  325.      */
  326.     public StatisticaSettimanale readStatisticaSettimanale(InputStream in) throws DeserializerException {
  327.         return (StatisticaSettimanale) this.xmlToObj(in, StatisticaSettimanale.class);
  328.     }  
  329.    
  330.     /**
  331.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaSettimanale}
  332.      *
  333.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaSettimanale}
  334.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaSettimanale}
  335.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  336.      */
  337.     public StatisticaSettimanale readStatisticaSettimanale(byte[] in) throws DeserializerException {
  338.         return (StatisticaSettimanale) this.xmlToObj(in, StatisticaSettimanale.class);
  339.     }  
  340.    
  341.     /**
  342.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaSettimanale}
  343.      *
  344.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaSettimanale}
  345.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaSettimanale}
  346.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  347.      */
  348.     public StatisticaSettimanale readStatisticaSettimanaleFromString(String in) throws DeserializerException {
  349.         return (StatisticaSettimanale) this.xmlToObj(in.getBytes(), StatisticaSettimanale.class);
  350.     }  
  351.    
  352.    
  353.    
  354.     /*
  355.      =================================================================================
  356.      Object: statistica-oraria
  357.      =================================================================================
  358.     */
  359.    
  360.     /**
  361.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaOraria}
  362.      *
  363.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaOraria}
  364.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaOraria}
  365.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  366.      */
  367.     public StatisticaOraria readStatisticaOraria(String fileName) throws DeserializerException {
  368.         return (StatisticaOraria) this.xmlToObj(fileName, StatisticaOraria.class);
  369.     }
  370.    
  371.     /**
  372.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaOraria}
  373.      *
  374.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaOraria}
  375.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaOraria}
  376.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  377.      */
  378.     public StatisticaOraria readStatisticaOraria(File file) throws DeserializerException {
  379.         return (StatisticaOraria) this.xmlToObj(file, StatisticaOraria.class);
  380.     }
  381.    
  382.     /**
  383.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaOraria}
  384.      *
  385.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaOraria}
  386.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaOraria}
  387.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  388.      */
  389.     public StatisticaOraria readStatisticaOraria(InputStream in) throws DeserializerException {
  390.         return (StatisticaOraria) this.xmlToObj(in, StatisticaOraria.class);
  391.     }  
  392.    
  393.     /**
  394.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaOraria}
  395.      *
  396.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaOraria}
  397.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaOraria}
  398.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  399.      */
  400.     public StatisticaOraria readStatisticaOraria(byte[] in) throws DeserializerException {
  401.         return (StatisticaOraria) this.xmlToObj(in, StatisticaOraria.class);
  402.     }  
  403.    
  404.     /**
  405.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaOraria}
  406.      *
  407.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaOraria}
  408.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaOraria}
  409.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  410.      */
  411.     public StatisticaOraria readStatisticaOrariaFromString(String in) throws DeserializerException {
  412.         return (StatisticaOraria) this.xmlToObj(in.getBytes(), StatisticaOraria.class);
  413.     }  
  414.    
  415.    
  416.    
  417.     /*
  418.      =================================================================================
  419.      Object: statistica-info
  420.      =================================================================================
  421.     */
  422.    
  423.     /**
  424.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaInfo}
  425.      *
  426.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaInfo}
  427.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaInfo}
  428.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  429.      */
  430.     public StatisticaInfo readStatisticaInfo(String fileName) throws DeserializerException {
  431.         return (StatisticaInfo) this.xmlToObj(fileName, StatisticaInfo.class);
  432.     }
  433.    
  434.     /**
  435.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaInfo}
  436.      *
  437.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaInfo}
  438.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaInfo}
  439.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  440.      */
  441.     public StatisticaInfo readStatisticaInfo(File file) throws DeserializerException {
  442.         return (StatisticaInfo) this.xmlToObj(file, StatisticaInfo.class);
  443.     }
  444.    
  445.     /**
  446.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaInfo}
  447.      *
  448.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaInfo}
  449.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaInfo}
  450.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  451.      */
  452.     public StatisticaInfo readStatisticaInfo(InputStream in) throws DeserializerException {
  453.         return (StatisticaInfo) this.xmlToObj(in, StatisticaInfo.class);
  454.     }  
  455.    
  456.     /**
  457.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaInfo}
  458.      *
  459.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaInfo}
  460.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaInfo}
  461.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  462.      */
  463.     public StatisticaInfo readStatisticaInfo(byte[] in) throws DeserializerException {
  464.         return (StatisticaInfo) this.xmlToObj(in, StatisticaInfo.class);
  465.     }  
  466.    
  467.     /**
  468.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.statistiche.StatisticaInfo}
  469.      *
  470.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.statistiche.StatisticaInfo}
  471.      * @return Object type {@link org.openspcoop2.core.statistiche.StatisticaInfo}
  472.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  473.      */
  474.     public StatisticaInfo readStatisticaInfoFromString(String in) throws DeserializerException {
  475.         return (StatisticaInfo) this.xmlToObj(in.getBytes(), StatisticaInfo.class);
  476.     }  
  477.    
  478.    
  479.    

  480. }