class JarUtil {

	public static long getResourceSize(Path file, String resource) throws IOException {
		checkNotNull(resource);
		checkNotNull(file);

		URL url = getResourceUrl(file, resource);
		if (url == null)
			throw new IOException();

		return Resources.asByteSource(url).size();
	}

	private  JarUtil();

}