Class HasInputStream

java.lang.Object
com.helger.base.io.stream.HasInputStream
All Implemented Interfaces:
IHasInputStream

@Immutable public class HasInputStream extends Object implements IHasInputStream
Special implementation of IHasInputStream with that has an InputStream supplier that can be read more than once!
Author:
Philip Helger
  • Constructor Details

    • HasInputStream

      public HasInputStream(@NonNull Supplier<? extends InputStream> aISP, boolean bReadMultiple)
      Constructor
      Parameters:
      aISP - InputStream supplier. May not be null.
      bReadMultiple - true if the supplier can be invoked more than once (e.g. from a byte[]) or false if it can be invoked only once (e.g. from an open socket).
  • Method Details