diff options
author | ArghKevin <kagheli@student.sdccd.edu> | 2024-05-08 21:24:42 -0700 |
---|---|---|
committer | ArghKevin <kagheli@student.sdccd.edu> | 2024-05-08 21:24:42 -0700 |
commit | 33cbc71a230e7522168fdfe41afd5e3acf5bb7b5 (patch) | |
tree | 64a0ed61c802009558f4c46f6ca8995df36d9137 /src/JSONReader.java | |
parent | ada80f74d26a632c1d6960f04f773f4fe51fc10d (diff) |
Javadoc beginning.
Diffstat (limited to 'src/JSONReader.java')
-rw-r--r-- | src/JSONReader.java | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/src/JSONReader.java b/src/JSONReader.java index 52edf3a..786b2a1 100644 --- a/src/JSONReader.java +++ b/src/JSONReader.java @@ -1,3 +1,4 @@ +import java.util.HashMap; import java.io.*; /* @@ -5,10 +6,9 @@ import java.io.*; * Kian Agheli * * References: - * https://jqlang.github.io/jq/manual/ * * Date: - * 2024-04-28 + * 2024-05-08 * * Purpose of class: * Read from and interpret JSON files. @@ -19,8 +19,25 @@ public class JSONReader extends Reader { super(file); } - /* Something akin to jq's field selection. */ - public String getField(String field) { + /* + * Search for and return the first + * match. + */ + public String get(String field) { + return null; + } + + /* + * Search for and return all matches. + */ + public String[] getAll(String field) { + return null; + } + + /* + * Search for and return a table of fields. + */ + public String getTable(HashMap<String,String> name) { return null; } } |