Package org.freezedry.persistence

Examples of org.freezedry.persistence.PersistenceEngine


//      e.printStackTrace();
//    }
   
//    final int[] test = new int[] { 3, 1, 4, 1, 5, 9, 2, 6, 5, 3 };
    final int[][] test = new int[][] { { 3, 1 }, { 4, 1 }, { 5, 9 }, { 2, 6 }, { 5, 3 } };
    final PersistenceEngine engine = new PersistenceEngine();
    final InfoNode rootNode = engine.createSemanticModel( test );
    System.out.println( rootNode.treeToString() );

    try( final PrintWriter printWriter = new PrintWriter( new FileWriter( "test.xml" ) ) )
    {
      final XmlWriter writer = new XmlWriter();
View Full Code Here


    final InputStream inputStream = new BufferedInputStream( new FileInputStream( "test.xml" ) );
    final Reader input = new InputStreamReader( inputStream );
    final InfoNode infoNode = reader.read( inputClazz, input );
    System.out.println( infoNode.simpleTreeToString() );
   
    final PersistenceEngine engine = new PersistenceEngine();
    final Object reperson = engine.parseSemanticModel( inputClazz, infoNode );
    System.out.println( reperson );
  }
View Full Code Here

    final JsonReader reader = new JsonReader();
    final Class< ? > inputClazz = int[].class;
    final InfoNode infoNode = reader.read( inputClazz, input );
    System.out.println( infoNode.simpleTreeToString() );
   
    final PersistenceEngine engine = new PersistenceEngine();
    final Object reperson = engine.parseSemanticModel( inputClazz, infoNode );
    System.out.println( reperson );
  }
View Full Code Here

TOP

Related Classes of org.freezedry.persistence.PersistenceEngine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.