Class ContentClaimOutputStream

java.lang.Object
java.io.OutputStream
org.apache.nifi.controller.repository.io.ContentClaimOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public abstract class ContentClaimOutputStream extends OutputStream
  • Constructor Details

    • ContentClaimOutputStream

      public ContentClaimOutputStream()
  • Method Details

    • newContentClaim

      public abstract ContentClaim newContentClaim() throws IOException
      Creates a new Content Claim that is backed by this OutputStream. This allows the caller to create a new Content Claim but ensure that they keep writing to the same OutputStream, which can significantly improve performance.
      Returns:
      a new ContentClaim
      Throws:
      IOException - if unable to finalize the current ContentClaim or create a new one