public class TileCache extends Object
| 构造器 | 说明 |
|---|---|
TileCache() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
BufferedImage |
get(URI uri) |
Returns a buffered image for the requested URI from the cache.
|
void |
needMoreMemory() |
Request that the cache free up some memory.
|
void |
put(URI uri,
byte[] bimg,
BufferedImage img) |
Put a tile image into the cache.
|
public void put(URI uri, byte[] bimg, BufferedImage img)
uri - URI of image that is being stored in the cachebimg - bytes of the compressed image, ie: the image file that was loaded over the networkimg - image to store in the cachepublic BufferedImage get(URI uri) throws IOException
uri - URI of the image previously put in the cacheIOExceptionpublic void needMoreMemory()
Copyright © 2019. All rights reserved.