Class StreamArtifactSink

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.OutputStream destination  
      private org.eclipse.equinox.p2.metadata.IArtifactKey requestedKey  
      private boolean writeStarted  
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamArtifactSink​(org.eclipse.equinox.p2.metadata.IArtifactKey requestedKey, java.io.OutputStream destination)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void abortWrite()
      Method for aborting the write operation.
      java.io.OutputStream beginWrite()
      Method for starting the write operation.
      boolean canBeginWrite()
      Check if IArtifactSink.beginWrite() can be called on this instance.
      void commitWrite()
      Method to committing the write operation.
      org.eclipse.equinox.p2.metadata.IArtifactKey getArtifactToBeWritten()
      Returns the key of the artifact expected by this instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • requestedKey

        private org.eclipse.equinox.p2.metadata.IArtifactKey requestedKey
      • destination

        private java.io.OutputStream destination
      • writeStarted

        private boolean writeStarted
    • Constructor Detail

      • StreamArtifactSink

        StreamArtifactSink​(org.eclipse.equinox.p2.metadata.IArtifactKey requestedKey,
                           java.io.OutputStream destination)