New Util Code in Gwittir (svn)

Tagged:
I just checked in a bunch of new stuff in to Gwittir svn based on stuff I have been working on lately. In order of increasing interestingness:
  • Base64 : Self explanatory
  • MD5 : Self explanatory
  • HistoryTokenizer : A class that can be used to manage multiple tokens in the anchor slug.
  • StringUtil : A wrapper for String utilities. Right now it is just [to|from][Utf8|Utf16]ByteArray() methods. This fills a badly missed hole in the GWT java.lang.String implementation.
  • HuffmanEncoder/Decoder: A client-side compression library. It also includes HuffmanString, a GWT-serializable string that can be used for long text data. Please note, this is a special case. You should generally rely on either the RemoteServiceServlet's or Apache's GZip support.
And the big one for now: The html5db.* package. This one provides access to the SQLLite implementation is Safari and on the iPhone. You can look over a basic example here of using it. I will post more on this later. But this will not work in hosted mode. Because the Safari embedding library did not allow people to set the SQLLite quota externally, your code will only work after it has been compiled at the moment. I will try and put together some mockability for hosted mode sometime soon.