repInfo.setProperty(new Property("Records", PropertyType.PROPERTY, PropertyArity.LIST, recordProperties)); repInfo.setSize(reader.getConsumed());
niso = tifd.getNisoImageMetadata (); info.setProperty (new Property ("NisoImageMetadata", PropertyType.NISOIMAGEMETADATA, niso)); info.setProperty(new Property ("Exif", PropertyType.PROPERTY, PropertyArity.LIST, info.setProperty (new Property ("NisoImageMetadata", PropertyType.NISOIMAGEMETADATA, niso));
PropertyType.INTEGER, xPixelsPerUnit); info.setProperty (prop); prop = new Property ("Y pixels per unit", PropertyType.INTEGER, yPixelsPerUnit); info.setProperty (prop); String unitStr; switch (unit) { PropertyType.STRING, unitStr); info.setProperty (prop);
PropertyType.INTEGER, grayBkgd); info.setProperty (grayProp); break; case 2: PropertyType.INTEGER, redBkgd); info.setProperty (redProp); Property greenProp = new Property ("Green background value", PropertyType.INTEGER, greenBkgd); info.setProperty (greenProp); Property blueProp = new Property ("Blue background value", PropertyType.INTEGER, blueBkgd); info.setProperty (blueProp); break; case 3: PropertyType.INTEGER, bkgdIndex); info.setProperty (bkgdProp); break;
info.setProperty (new Property ("Transparent grey value", PropertyType.INTEGER, transGray)); int transGreen = readUnsignedShort(); int transBlue = readUnsignedShort(); info.setProperty (new Property ("Transparent red value", PropertyType.INTEGER, transRed)); info.setProperty (new Property ("Transparent green value", PropertyType.INTEGER, transGreen)); info.setProperty (new Property ("Transparent blue value", PropertyType.INTEGER, transBlue)); alpha[i] = readUnsignedByte(); info.setProperty (new Property ("Alpha for palette index", PropertyType.INTEGER, PropertyArity.ARRAY,
info.setProperty(metadata);
info.setProperty(new Property("ASCIIMetadata", PropertyType.PROPERTY, PropertyArity.LIST, metadataList));
info.setProperty (_metadata); info.setProperty (hMetadata.toProperty (_withTextMD?_textMD:null));
info.setProperty(_metadata);
info.setProperty(_metadata);
info.setProperty(new Property("UTF8Metadata", PropertyType.PROPERTY, PropertyArity.LIST, metadataList));
info.setProperty(new Property("TIFFMetadata", PropertyType.PROPERTY, PropertyArity.ARRAY, tiffMetadata)); } catch (TiffException e) {
/** Process the data in the chunk. All we do is note the * presence of the chunk in a property. */ public void processChunk(RepInfo info) throws Exception { final String badChunk = "Bad hIST chunk"; processChunkCommon(info); ErrorMessage msg = null; if (!_module.isPlteSeen()) { msg = new ErrorMessage ("hIST chunk found without preceding PLTE chunk"); } else if (_module.isIdatSeen()) { msg = new ErrorMessage ("hIST chunk is not allowed after IDAT chunk"); } if (msg != null) { info.setMessage (msg); info.setWellFormed (false); throw new PNGException (badChunk); } Property prop = new Property ("Histogram", PropertyType.STRING, "present"); info.setProperty (prop); for (int i = 0; i < length; i++) { readUnsignedByte(); } } }
/** * Reports the results of the characterization. * @param reader The GZIP reader, which has read the GZIP-file. * @param repInfo The representation info, where to report the results. * @throws JhoveException * @throws IOException */ private void reportResults(GzipReader reader, RepInfo repInfo) throws JhoveException, IOException { Diagnostics<Diagnosis> diagnostics = reader.diagnostics; if (diagnostics.hasErrors()) { for (Diagnosis d : diagnostics.getErrors()) { repInfo.setMessage(new ErrorMessage(extractDiagnosisType(d), extractDiagnosisMessage(d))); } repInfo.setConsistent(false); } if (diagnostics.hasWarnings()) { // Report warnings on source object. for (Diagnosis d : diagnostics.getWarnings()) { repInfo.setMessage(new InfoMessage(extractDiagnosisType(d), extractDiagnosisMessage(d))); } } repInfo.setProperty(new Property("Records", PropertyType.PROPERTY, PropertyArity.LIST, entryProperties)); repInfo.setSize(reader.getConsumed()); }
info.setProperty(_metadata);
_spltList)); info.setProperty (_metadata); return 0;
metaArray[2] = _xmpProp; info.setProperty (_metadata); return 0;
PropertyType.STRING, intents[colorIntent]); info.setProperty (prop);
_saxelList)); info.setProperty (_metadata);
: null); if (property != null) { info.setProperty(property);