class SimpleTmsUrlBuilder implements TileUrlBuilder {

	@Override
	public String buildUrl(TileCode tileCode, String baseTmsUrl) {
		StringBuilder builder = new StringBuilder(baseTmsUrl);
		if (!baseTmsUrl.endsWith("/")) {
			builder.append("/");
		}
		builder.append(tileCode.getTileLevel());
		builder.append("/");
		builder.append(tileCode.getX());
		builder.append("/");
		builder.append(tileCode.getY());
		builder.append(extension);
		return builder.toString();
	}

	public  SimpleTmsUrlBuilder(String extension);

}