Пример #1
0
 @Override
 public final Tile getTile(int n, int n2, int n3) {
   Object object = this.getTileUrl(n, n2, n3);
   if (object == null) {
     return NO_TILE;
   }
   try {
     object = new Tile(this.lf, this.lg, UrlTileProvider.e(object.openStream()));
     return object;
   } catch (IOException var4_5) {
     return null;
   }
 }
Пример #2
0
 private static byte[] e(InputStream inputStream) throws IOException {
   ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
   UrlTileProvider.a(inputStream, byteArrayOutputStream);
   return byteArrayOutputStream.toByteArray();
 }