Lines Matching refs:spec
44 private static int indexOfBangSlash(String spec) {
45 int indexOfBang = spec.length();
46 while((indexOfBang = spec.lastIndexOf('!', indexOfBang)) != -1) {
47 if ((indexOfBang != (spec.length() - 1)) &&
48 (spec.charAt(indexOfBang + 1) == '/')) {
126 protected void parseURL(URL url, String spec,
131 int refPos = spec.indexOf('#', limit);
134 ref = spec.substring(refPos + 1, spec.length());
139 // then figure out if the spec is
144 if (spec.length() >= 4) {
145 absoluteSpec = spec.substring(0, 4).equalsIgnoreCase("jar:");
147 spec = spec.substring(start, limit);
150 file = parseAbsoluteSpec(spec);
152 file = parseContextSpec(url, spec);
165 private String parseAbsoluteSpec(String spec) {
169 if ((index = indexOfBangSlash(spec)) == -1) {
170 throw new NullPointerException("no !/ in spec");
174 String innerSpec = spec.substring(0, index - 1);
178 spec + " (" + e + ")");
180 return spec;
183 private String parseContextSpec(URL url, String spec) {
185 // if the spec begins with /, chop up the jar back !/
186 if (spec.startsWith("/")) {
196 if (!ctxFile.endsWith("/") && (!spec.startsWith("/"))){
206 return (ctxFile + spec);