class FileSystemRepository implements ContentRepository {

    @Override
    public long size(final ContentClaim claim) throws IOException {
        if (claim == null) {
            return 0L;
        }

        // see javadocs for claim.getLength() as to why we do this.
        if (claim.getLength() < 0) {
            return Files.size(getPath(claim, true)) - claim.getOffset();
        }

        return claim.getLength();
    }

    public  FileSystemRepository();
    public  FileSystemRepository(final NiFiProperties nifiProperties);

}