info.setSize(_nByte); if (ckSummer != null) { info.setChecksum(new Checksum(ckSummer.getCRC32(),
repInfo.setSize(reader.getConsumed());
info.show(handler); } else if (handler.okToProcess(dirFileOrUri)) { info.setSize(file.length()); if (lastModified < 0) { lastModified = file.lastModified();
info.setSize(file.length()); if (module != null) { if (!jb.processFile(jhoveApp, module, false, file, info)) {
info.setSize (this._nByte); if (this._nByte == 0) { info.setMessage (new InfoMessage (CoreMessageConstants.INF_FILE_EMPTY));
info.setSize(_cstream.getNBytes()); info.setChecksum(new Checksum(_ckSummer.getCRC32(), ChecksumType.CRC32));
info.setSize(_cstream.getNBytes()); info.setChecksum(new Checksum(ckSummer.getCRC32(), ChecksumType.CRC32));
/** * 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.setSize(_cstream.getNBytes()); info.setChecksum(new Checksum(_ckSummer.getCRC32(), ChecksumType.CRC32));
info.setSize (_cstream.getNBytes ()); info.setChecksum (new Checksum (_ckSummer.getCRC32 (), ChecksumType.CRC32));
info.setSize (_cstream.getNBytes ()); info.setChecksum (new Checksum (_ckSummer.getCRC32 (), ChecksumType.CRC32));
info.setSize(_cstream.getNBytes()); info.setChecksum(new Checksum(ckSummer.getCRC32(), ChecksumType.CRC32));