Beispiel #1
0
  public Download(Center c1, Center c2) throws TooManyPictureException, IOException {
    p = new CenterProviter(c1, c2);

    this.mapInfo = new MapInfo(c1, c2);
    System.out.println("Hello");
    System.out.println(c2.getLat() + " " + c2.getLon());
    System.out.println(mapInfo);
    int pictureNumber = p.getMaxX() * p.getMaxY();
    if (pictureNumber > 150) {
      throw new TooManyPictureException("要下载" + pictureNumber + "个图片 这图片太多了");
    }
    client = HttpClients.createDefault();
  }