public InputStream read() throws IOException { if (amos == null) { final ContentClaim backupClaim = getBackupClaim(claim); return getBackupRepository().read(backupClaim); } else { return amos.newInputStream(); } } }
@Override public InputStream read(final ContentClaim claim) throws IOException { if (claim == null) { return new ByteArrayInputStream(new byte[0]); } final ContentClaim backupClaim = getBackupClaim(claim); return backupClaim == null ? getContent(claim).read() : getBackupRepository().read(backupClaim); }
} else { resourceClaim = flowFile.getContentClaim().getResourceClaim(); stream = contentRepository.read(flowFile.getContentClaim()); final long contentClaimOffset = flowFile.getContentClaimOffset(); if (contentClaimOffset > 0L) {
final InputStream rawStream = contentRepository.read(claim); final ResourceClaim resourceClaim = claim.getResourceClaim();
final InputStream rawIn; try { rawIn = contentRepository.read(flowFile.getContentClaim()); } catch (final ContentNotFoundException cnfe) { throw new ContentNotFoundException(flowFile, flowFile.getContentClaim(), cnfe.getMessage());