From 93831404b4d4ba4e964ebe542c52bc196585d4ab Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 16 Feb 2012 06:19:47 +0000 Subject: Added a missing and badly needed helper function to the dictionary, put with a byte array as a parameter. --- java/com/xagasoft/gats/GatsDictionary.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'java/com/xagasoft/gats') diff --git a/java/com/xagasoft/gats/GatsDictionary.java b/java/com/xagasoft/gats/GatsDictionary.java index b04f02c..a980b9d 100644 --- a/java/com/xagasoft/gats/GatsDictionary.java +++ b/java/com/xagasoft/gats/GatsDictionary.java @@ -141,6 +141,15 @@ public class GatsDictionary extends GatsObject implements Map return hValue.put( key, new GatsString( val ) ); } + /** + * Helper function that inserts a new com.xagasoft.gats.GatsString with the + * value val. + */ + public GatsObject put( String key, byte val[] ) + { + return hValue.put( key, new GatsString( val ) ); + } + /** * Helper function that gets the specified GatsObject, casts it to a * com.xagasoft.gats.GatsInteger and extracts the value from it. If the -- cgit v1.2.3