(int count, long offset)
| 183 | } |
| 184 | |
| 185 | byte[] getString(int count, long offset) throws IOException { |
| 186 | count--; // skip null byte at end of string |
| 187 | if (count<=3) |
| 188 | return null; |
| 189 | byte[] bytes = new byte[count]; |
| 190 | long saveLoc = in.getLongFilePointer(); |
| 191 | in.seek(offset); |
| 192 | in.readFully(bytes); |
| 193 | in.seek(saveLoc); |
| 194 | return bytes; |
| 195 | } |
| 196 | |
| 197 | /** Save the image description in the specified FileInfo. ImageJ |
| 198 | saves spatial and density calibration data in this string. For |
no test coverage detected