code: public static BloomKFilter deserialize(InputStream in) throws IOException
    {
      if (in == null) {
        throw new IOException("Input stream is null");
      }
  
      try {
        DataInputStream dataInputStream = new DataInputStream(in);
        int numHashFunc = dataInputStream.readByte();
        int bitsetArrayLen = dataInputStream.readInt();
        long[] data = new long[bitsetArrayLen];
        for (int i = 0; i < bitsetArrayLen; i++) {
          data[i] = dataInputStream.readLong();
        }
        return new BloomKFilter(data, numHashFunc);
      }
      catch (RuntimeException e) {
        IOException io = new IOException("Unable to deserialize BloomKFilter");
        io.initCause(e);
        throw io;
      }
    }
docs: Deserialize a bloom filter
  Read a byte stream, which was written by {@linkplain #serialize(OutputStream, BloomKFilter)}
  into a {@code BloomKFilter}
  
  @param in input bytestream
  
  @return deserialized BloomKFilter