MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / parseHTML

Method parseHTML

ij/src/main/java/ij/plugin/DragAndDrop.java:132–147  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

130 }
131
132 private String parseHTML(String s) {
133 if (IJ.debugMode) IJ.log("parseHTML:\n"+s);
134 int index1 = s.indexOf("src=\"");
135 if (index1>=0) {
136 int index2 = s.indexOf("\"", index1+5);
137 if (index2>0)
138 return s.substring(index1+5, index2);
139 }
140 index1 = s.indexOf("href=\"");
141 if (index1>=0) {
142 int index2 = s.indexOf("\"", index1+6);
143 if (index2>0)
144 return s.substring(index1+6, index2);
145 }
146 return s;
147 }
148
149 @AstroImageJ(reason = "Custom status", modified = true)
150 public void dragEnter(DropTargetDragEvent e) {

Callers 1

dropMethod · 0.95

Calls 3

logMethod · 0.95
substringMethod · 0.80
indexOfMethod · 0.45

Tested by

no test coverage detected