diff options
author | Nick Hudson <nick.hudson@isode.com> | 2012-02-02 15:19:36 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-02-13 16:59:43 (GMT) |
commit | 5d1245e7ecde8c5b41279bdad6df930084ff35a6 (patch) | |
tree | 60de739a060e29492513a12daf592798441539eb /test/com/isode | |
parent | 9d6f73f13b981fb9430765b171d7b419cbe632cc (diff) | |
download | stroke-5d1245e7ecde8c5b41279bdad6df930084ff35a6.zip stroke-5d1245e7ecde8c5b41279bdad6df930084ff35a6.tar.bz2 |
Update ByteArray with "readFromFile" implementation and more javadoc
This change provides implementation for the previously empty
"readFromFile" method, which is based on the code inside Swiften's
ByteArray.readByteArrayFromFile().
Note that, as for the Swiften method, no errors are reported if an
attempt to read from a file fails; it just leaves the contents of the
object unchanged.
Some javadoc was also provided, especially noting that the various
String methods are only safe so long as you're working with UTF-8
Strings.
Test-information:
Existing Stroke unit tests still pass
Signed-off-by: Nick Hudson <nick.hudson@isode.com>
Diffstat (limited to 'test/com/isode')
0 files changed, 0 insertions, 0 deletions