diff options
Diffstat (limited to 'java/FileExample.java')
-rw-r--r-- | java/FileExample.java | 6 |
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; | |||
6 | import java.io.FileNotFoundException; | 6 | import java.io.FileNotFoundException; |
7 | import java.io.IOException; | 7 | import 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 | */ | ||
9 | class FileExample | 13 | class 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 ); |