Interface IHasOutputStream

All Known Subinterfaces:
IHasOutputStreamAndWriter
All Known Implementing Classes:
ByteArrayOutputStreamProvider

public interface IHasOutputStream
A callback interface to retrieve OutputStream objects.
Author:
Philip Helger
  • Method Details

    • getOutputStream

      @Nullable OutputStream getOutputStream(@NonNull EAppend eAppend)
      Get the output stream to read from the object. Each time this method is call, a new OutputStream needs to be created!
      Parameters:
      eAppend - appending mode. May not be null.
      Returns:
      null if resolving failed.
    • getBufferedOutputStream

      default @Nullable OutputStream getBufferedOutputStream(@NonNull EAppend eAppend)
      Get the output stream to read from the object. Each time this method is call, a new OutputStream needs to be created. Internally invokes getOutputStream(EAppend).
      Parameters:
      eAppend - appending mode. May not be null.
      Returns:
      null if resolving failed.
      Since:
      9.1.8
    • isWriteMultiple

      boolean isWriteMultiple()
      Check if the OutputStream from getOutputStream(EAppend) or getBufferedOutputStream(EAppend) can be acquired more than once or not.
      Returns:
      true if the output stream can be acquired more than once, false if not.