public URIResolver(String baseUriStr, String uriStr, Class<?> calling) throws IOException { this.calling = (calling != null) ? calling : getClass(); if (uriStr.startsWith("classpath:")) { tryClasspath(uriStr); } else if (baseUriStr != null && (baseUriStr.startsWith("jar:") || baseUriStr.startsWith("zip:") || baseUriStr.startsWith("wsjar:")) && !isAbsolute(uriStr)) { tryArchive(baseUriStr, uriStr); } else if (uriStr.startsWith("jar:") || uriStr.startsWith("zip:") || uriStr.startsWith("wsjar:")) { tryArchive(uriStr); } else { tryFileSystem(baseUriStr, uriStr); } }
public URIResolver(String baseUriStr, String uriStr, Class<?> calling) throws IOException { this.calling = (calling != null) ? calling : getClass(); if (uriStr.startsWith("classpath:")) { tryClasspath(uriStr); } else if (baseUriStr != null && (baseUriStr.startsWith("jar:") || baseUriStr.startsWith("zip:") || baseUriStr.startsWith("wsjar:")) && !isAbsolute(uriStr)) { tryArchive(baseUriStr, uriStr); } else if (uriStr.startsWith("jar:") || uriStr.startsWith("zip:") || uriStr.startsWith("wsjar:")) { tryArchive(uriStr); } else { tryFileSystem(baseUriStr, uriStr); } }
public void resolve(String baseUriStr, String uriStr, Class<?> callingCls) throws IOException { this.calling = (callingCls != null) ? callingCls : getClass(); this.file = null; this.uri = null; this.is = null; if (uriStr.startsWith("classpath:")) { tryClasspath(uriStr); } else if (baseUriStr != null && (baseUriStr.startsWith("jar:") || baseUriStr.startsWith("zip:") || baseUriStr.startsWith("wsjar:")) && !isAbsolute(uriStr)) { tryArchive(baseUriStr, uriStr); } else if (uriStr.startsWith("jar:") || uriStr.startsWith("zip:") || uriStr.startsWith("wsjar:")) { tryArchive(uriStr); } else { tryFileSystem(baseUriStr, uriStr); } }
public void resolve(String baseUriStr, String uriStr, Class<?> callingCls) throws IOException { this.calling = (callingCls != null) ? callingCls : getClass(); this.file = null; this.uri = null; this.is = null; if (uriStr.startsWith("classpath:")) { tryClasspath(uriStr); } else if (baseUriStr != null && (baseUriStr.startsWith("jar:") || baseUriStr.startsWith("zip:") || baseUriStr.startsWith("wsjar:")) && !isAbsolute(uriStr)) { tryArchive(baseUriStr, uriStr); } else if (uriStr.startsWith("jar:") || uriStr.startsWith("zip:") || uriStr.startsWith("wsjar:")) { tryArchive(uriStr); } else { tryFileSystem(baseUriStr, uriStr); } }