MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / getContents

Method getContents

src/javajs/util/VideoReader.java:66–83  ·  view source on GitHub ↗
(boolean verbose)

Source from the content-addressed store, hash-verified

64 }
65
66 public List<Map<String, Object>> getContents(boolean verbose) {
67 contents = new ArrayList<>();
68 this.verbose = true;//verbose;
69 while (isAvail()) {
70 try {
71 readBlock(contents);
72 } catch (IOException e) {
73 break;
74 }
75 }
76 try {
77 is.close();
78 } catch (IOException e) {
79 // TODO Auto-generated catch block
80 e.printStackTrace();
81 }
82 return contents;
83 }
84
85 protected void readBlock(List<Map<String, Object>> contents) throws IOException {
86 int pt = this.pt;

Callers 2

getVideoCodecMethod · 0.95
getMP4CodecMethod · 0.95

Calls 3

isAvailMethod · 0.95
readBlockMethod · 0.95
closeMethod · 0.65

Tested by 1

getMP4CodecMethod · 0.76