aboutsummaryrefslogtreecommitdiff
path: root/java/FileExample.java
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-10-24 15:41:33 +0000
committerMike Buland <eichlan@xagasoft.com>2012-10-24 15:41:33 +0000
commit04f48e8e0560f7c9d4ea883268a3abdbf3bf7d9c (patch)
tree3ef3925ea2aeebce1f48593186bf2e36b588def4 /java/FileExample.java
parentf200ec8a2d89c86edbfedc7cd04467e38e9a7786 (diff)
downloadlibgats-04f48e8e0560f7c9d4ea883268a3abdbf3bf7d9c.tar.gz
libgats-04f48e8e0560f7c9d4ea883268a3abdbf3bf7d9c.tar.bz2
libgats-04f48e8e0560f7c9d4ea883268a3abdbf3bf7d9c.tar.xz
libgats-04f48e8e0560f7c9d4ea883268a3abdbf3bf7d9c.zip
Primarily documentation cleanups. Also removed some extra imports that are
no longer used.
Diffstat (limited to 'java/FileExample.java')
-rw-r--r--java/FileExample.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/java/FileExample.java b/java/FileExample.java
index 6f180d9..e0db728 100644
--- a/java/FileExample.java
+++ b/java/FileExample.java
@@ -6,6 +6,10 @@ import java.io.FileOutputStream;
6import java.io.FileNotFoundException; 6import java.io.FileNotFoundException;
7import java.io.IOException; 7import java.io.IOException;
8 8
9/**
10 * This simple example class shows several ways of constructing a Gats object
11 * hierarchy and also how to write and read Gats packets to and from streams.
12 */
9class FileExample 13class FileExample
10{ 14{
11 public static void writeFile() 15 public static void writeFile()
@@ -15,7 +19,7 @@ class FileExample
15 19
16 GatsDictionary root = new GatsDictionary(); 20 GatsDictionary root = new GatsDictionary();
17 21
18 // Automatically determine the type of gats object and insert it 22 // Automatically determine the type of Gats object and insert it
19 // for you 23 // for you
20 root.put("String", "This is a string"); 24 root.put("String", "This is a string");
21 root.put("Integer", 445 ); 25 root.put("Integer", 445 );