(byte[] buf)
| 422 | } |
| 423 | |
| 424 | private static boolean checkHeader(byte[] buf) { |
| 425 | if (buf.length < 16) return false; |
| 426 | byte[] head = "SQLite format 3".getBytes(); |
| 427 | for (int i = 0; i < 15; i++) { |
| 428 | if (buf[i] != head[i]) return false; |
| 429 | } |
| 430 | if (buf[15] != 0) return false; |
| 431 | return true; |
| 432 | } |
| 433 | |
| 434 | public static void addSection(Map<Integer, String> header, List<Map<String, Object>> cells, String head, String[] title, int[] type, Object[] detail, int[] progress) { |
| 435 | header.put(cells.size(), head); |