protected void readVer(RepInfo info) throws IOException { int length = readUnsignedShort(_dstream); int majVersion = readUnsignedByte(_dstream, this); int minVersion = readUnsignedByte(_dstream, this); String vsn = Integer.toString(majVersion) + "." + minorFmt.format(minVersion); info.setVersion(vsn); // The number of capability bytes is equal to // majVersion + 1. The current code understands // major versions through 1, and per the specs, // will ignore these bytes if majVersion is greater // than 1. int skip = length - 4; if (majVersion <= 1) { _capability0 = readUnsignedByte(_dstream, this); skip--; if (majVersion == 1) { _capability1 = readUnsignedByte(_dstream, this); skip--; } } skipBytes(_dstream, skip, this); _seenJPEGL = false; // Not permitted under JPEG-L }
info.setVersion ("89a"); info.setProfile ("GIF 89a"); info.setVersion ("87a"); info.setProfile ("GIF 87a");
if(e.getValue() > maxCount) { maxCount = e.getValue(); repInfo.setVersion(e.getKey());
info.setVersion (vers); info.setVersion (vers); info.setVersion ("1.0"); _textMD.setMarkup_basis_version("1.0");
info.setVersion(_version); metadataList.add(new Property(PROP_NAME_OBJECTS, PropertyType.INTEGER,
ifds = parseIFDs(4, info); info.setVersion(Integer.toString(_version) + ".0");
@Override public int parse(InputStream stream, RepInfo info, int parseIndex) throws IOException { GzipReader reader = new GzipReader(new InputStreamNoSkip(stream), 8192); try { info.setFormat(_format[0]); info.setVersion("4.3"); // Is it really version 4.3? info.setMimeType(_mimeType[0]); info.setModule(this); parseRecords(reader); info.setValid(reader.isCompliant()); info.setWellFormed(reader.isCompliant()); reportResults(reader, info); if (reader.isCompliant()) { info.setSigMatch(_name); } } catch (Exception e) { info.setMessage(new ErrorMessage(e.getMessage())); info.setValid(false); info.setWellFormed(false); } finally { if(reader != null) { reader.close(); reader = null; } } return 0; }
info.setVersion(vsn); _units = readUnsignedByte(_dstream, this); if (_units >= 0 && _units <= 2) {
info.setVersion(vsn); readUnsignedByte(_dstream, this); readUnsignedByte(_dstream, this);
info.setProfile(profileNames[type]); info.setVersion(versionNames[type]);