(byte[] compressed)
| 822 | } |
| 823 | |
| 824 | public static byte[] decompress(byte[] compressed) throws IOException { |
| 825 | try (ByteArrayInputStream is = new ByteArrayInputStream(compressed)) { |
| 826 | try (GZIPInputStream gis = new GZIPInputStream(is)) { |
| 827 | return Helper.readBytes(gis); |
| 828 | } |
| 829 | } |
| 830 | } |
| 831 | |
| 832 | private static List<JSONArray> partition(JSONArray jarray) throws JSONException { |
| 833 | Log.i("Cloud batch size=" + jarray.length() + "/" + BATCH_SIZE); |