Class RdfStreamStreamingOutput

java.lang.Object
com.google.common.util.concurrent.internal.InternalFutureFailureAccess
com.google.common.util.concurrent.AbstractFuture<Void>
org.fcrepo.http.commons.responses.RdfStreamStreamingOutput
All Implemented Interfaces:
com.google.common.util.concurrent.ListenableFuture<Void>, Future<Void>, javax.ws.rs.core.StreamingOutput

public class RdfStreamStreamingOutput extends com.google.common.util.concurrent.AbstractFuture<Void> implements javax.ws.rs.core.StreamingOutput
Serializes an RdfStream.
Since:
Oct 30, 2013
Author:
ajs6f
  • Nested Class Summary

    Nested classes/interfaces inherited from interface java.util.concurrent.Future

    Future.State
  • Constructor Summary

    Constructors
    Constructor
    Description
    RdfStreamStreamingOutput(org.fcrepo.kernel.api.RdfStream rdfStream, Map<String,String> namespaces, javax.ws.rs.core.MediaType mediaType)
    Normal constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class com.google.common.util.concurrent.AbstractFuture

    addListener, afterDone, cancel, get, get, interruptTask, isCancelled, isDone, pendingToString, set, setException, setFuture, toString, tryInternalFastPathGetFailure, wasInterrupted

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.concurrent.Future

    exceptionNow, resultNow, state
  • Constructor Details

    • RdfStreamStreamingOutput

      public RdfStreamStreamingOutput(org.fcrepo.kernel.api.RdfStream rdfStream, Map<String,String> namespaces, javax.ws.rs.core.MediaType mediaType)
      Normal constructor
      Parameters:
      rdfStream - the rdf stream
      namespaces - a namespace mapping
      mediaType - the media type
  • Method Details

    • write

      public void write(OutputStream output)
      Specified by:
      write in interface javax.ws.rs.core.StreamingOutput