/** * Reads a chunk and puts information into the superchunk's Exif property. * * @return <code>false</code> if the chunk is structurally invalid, otherwise <code>true</code> */ public boolean readChunk(RepInfo info) throws IOException { WaveModule module = (WaveModule) _module; if (bytesLeft != 4) { info.setMessage(new ErrorMessage("Incorrect length for Exif Version Chunk")); info.setWellFormed(false); return false; } byte[] buf = new byte[4]; ModuleBase.readByteBuf(_dstream, buf, module); String txt = new String(buf); module.getExifInfo().setExifVersion(txt); return true; }