001/* 002 * The contents of this file are subject to the license and copyright 003 * detailed in the LICENSE and NOTICE files at the root of the source 004 * tree. 005 */ 006 007package org.fcrepo.http.commons.responses; 008 009import org.apache.jena.graph.Triple; 010import org.apache.jena.riot.system.StreamRDF; 011import org.apache.jena.riot.system.StreamRDFWrapper; 012import org.apache.jena.sparql.core.Quad; 013 014/** 015 * @author Daniel Bernstein 016 * @since Mar 22, 2017 017 */ 018public class SynchonizedStreamRDFWrapper extends StreamRDFWrapper { 019 020 /** 021 * 022 * @param stream the StreamRDF 023 */ 024 public SynchonizedStreamRDFWrapper(final StreamRDF stream) { 025 super(stream); 026 } 027 028 /* 029 * (non-Javadoc) 030 * @see org.apache.jena.riot.system.StreamRDFWrapper#start() 031 */ 032 @Override 033 public synchronized void start() { 034 super.start(); 035 } 036 037 /* 038 * (non-Javadoc) 039 * @see org.apache.jena.riot.system.StreamRDFWrapper#finish() 040 */ 041 @Override 042 public synchronized void finish() { 043 super.finish(); 044 } 045 046 /* 047 * (non-Javadoc) 048 * @see org.apache.jena.riot.system.StreamRDFWrapper#triple(org.apache.jena.graph.Triple) 049 */ 050 @Override 051 public synchronized void triple(final Triple triple) { 052 super.triple(triple); 053 } 054 055 /* 056 * (non-Javadoc) 057 * @see org.apache.jena.riot.system.StreamRDFWrapper#prefix(java.lang.String, java.lang.String) 058 */ 059 @Override 060 public synchronized void prefix(final String prefix, final String iri) { 061 super.prefix(prefix, iri); 062 } 063 064 /* 065 * (non-Javadoc) 066 * @see org.apache.jena.riot.system.StreamRDFWrapper#quad(org.apache.jena.sparql.core.Quad) 067 */ 068 @Override 069 public synchronized void quad(final Quad quad) { 070 super.quad(quad); 071 } 072 073}