MCPcopy Create free account
hub / github.com/diffplug/matfilerw / parseData

Method parseData

src/main/java/com/jmatio/io/MatFileReader.java:407–428  ·  view source on GitHub ↗
(ByteBuffer buf)

Source from the content-addressed store, hash-verified

405 }
406
407 private void parseData(ByteBuffer buf) throws IOException {
408 //read in file header
409 readHeader(buf);
410
411 while (buf.remaining() > 0) {
412 readData(buf);
413 }
414 if (!mcosToFind.isEmpty()) {
415 parseMCOS(mcosData, mcosToFind);
416 if (data.get("@") == mcosData) {
417 data.remove("@");
418 }
419 for (Map.Entry<String, MLArray> it : data.entrySet()) {
420 if (it.getValue() == mcosData) {
421 data.remove(it.getKey());
422 break;
423 }
424 }
425 }
426 mcosData = null;
427 mcosToFind.clear();
428 }
429
430 private static void parseMCOS(MLUInt8 mcosData, Set<MLObjectPlaceholder> mcosPlaceholders) throws IOException {
431 // First, parse back out the mcosData.

Callers 1

readMethod · 0.95

Calls 10

readHeaderMethod · 0.95
readDataMethod · 0.95
parseMCOSMethod · 0.95
getValueMethod · 0.80
getKeyMethod · 0.80
isEmptyMethod · 0.45
getMethod · 0.45
removeMethod · 0.45
entrySetMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected