This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GsonTestClass { | |
static Gson gson = new Gson(); | |
/* Running the main method will produce the following output: | |
* | |
* Before Serializing/Deserializing: {"foo1":"fooooo","bar1":"barrrr","type":"POJO1"} | |
* Before Serializing/Deserializing: {"foo2":"fooooooooooo","bar2":["bar","barr"],"type":"POJO2"} | |
* After Serialization (Knowing Type): {"foo1":"fooooo","bar1":"barrrr","type":"POJO1"} | |
* After Serialization (Knowing Type): {"foo2":"fooooooooooo","bar2":["bar","barr"],"type":"POJO2"} | |
* After Serialization (Type Unknown): {"foo1":"fooooo","bar1":"barrrr","type":"POJO1"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.edwardstlouis.xuggler; | |
import java.awt.AWTException; | |
import java.awt.Dimension; | |
import java.awt.GraphicsDevice; | |
import java.awt.GraphicsEnvironment; | |
import java.awt.Rectangle; | |
import java.awt.Robot; | |
import java.awt.image.BufferedImage; | |
import java.util.concurrent.Executors; |