()
| 121 | |
| 122 | tasks.add(new Callable<NUSTitleInformation>() { |
| 123 | @Override |
| 124 | public NUSTitleInformation call() throws Exception { |
| 125 | NUSTitleInformation newinformation = null; |
| 126 | NUSTitle foo = new NUSTitle(test.getTitleID()| 0x0000000E00000000L, -1, null); |
| 127 | FEntry testa = foo.getFst().metaFENtry; |
| 128 | byte[] metaxml = null; |
| 129 | |
| 130 | if(testa != null){ |
| 131 | try { |
| 132 | metaxml = testa.downloadAsByteArray(); |
| 133 | InputStream stream = new ByteArrayInputStream(metaxml); |
| 134 | newinformation = foo.readMeta(stream); |
| 135 | newinformation.setTitleID(newinformation.getTitleID() | 0x0000000E00000000L); //Force update |
| 136 | newinformation.addVersion(test.getVersion()); |
| 137 | System.out.println(String.format("( %03d of %03d) ", count.incrementAndGet(),size) +"Downloaded information for " + test.getTitleIDAsString()); |
| 138 | stream.close(); |
| 139 | } catch (IOException e) { |
| 140 | System.out.println("Downloading information for " + test.getTitleIDAsString() + " failed"); |
| 141 | } |
| 142 | } |
| 143 | return newinformation; |
| 144 | } |
| 145 | }); |
| 146 | } |
| 147 | for(Future<NUSTitleInformation> future :pool.invokeAll(tasks)){ |
nothing calls this directly
no test coverage detected