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

Method getString

ij/src/main/java/ij/plugin/DICOM.java:328–339  ·  view source on GitHub ↗
(int length)

Source from the content-addressed store, hash-verified

326 }
327
328 String getString(int length) throws IOException {
329 byte[] buf = new byte[length];
330 int pos = 0;
331 while (pos<length) {
332 int count = f.read(buf, pos, length-pos);
333 if (count==-1)
334 throw new IOException("unexpected EOF");
335 pos += count;
336 }
337 location += length;
338 return new String(buf);
339 }
340
341 String getUNString(int length) throws IOException {
342 String s = getString(length);

Callers 4

getUNStringMethod · 0.95
getLutMethod · 0.95
getFileInfoMethod · 0.95
getHeaderInfoMethod · 0.95

Calls 1

readMethod · 0.65

Tested by

no test coverage detected