MCPcopy Index your code
hub / github.com/java-native-access/jna / run

Method run

test/com/sun/jna/WebStartTest.java:181–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179 this.sb = b;
180 }
181 @Override
182 public void run() {
183 byte[] buf = new byte[256];
184 while (true) {
185 try {
186 int count = is.read(buf, 0, buf.length);
187 if (count == -1) break;
188 if (count == 0) {
189 try { sleep(1); } catch(InterruptedException e) { }
190 }
191 else {
192 sb.append(new String(buf, 0, count));
193 }
194 }
195 catch(IOException e) {
196 showMessage("read error: " + e.toString());
197 }
198 }
199 try { is.close(); } catch(IOException e) { }
200 }
201 }
202
203 Thread out = null;

Callers 2

runTestCaseTestMethod · 0.45
mainMethod · 0.45

Calls 5

sleepMethod · 0.80
showMessageMethod · 0.80
readMethod · 0.65
closeMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected