()
| 97 | } |
| 98 | |
| 99 | protected DataByteArray bloomOut() throws IOException { |
| 100 | ByteArrayOutputStream baos = new ByteArrayOutputStream(vSize / 8); |
| 101 | DataOutputStream dos = new DataOutputStream(baos); |
| 102 | filter.write(dos); |
| 103 | return new DataByteArray(baos.toByteArray()); |
| 104 | } |
| 105 | |
| 106 | public static BloomFilter bloomIn(DataByteArray b) throws IOException { |
| 107 | DataInputStream dis = new DataInputStream(new |