Object ContentSource.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static ContentSource of(ByteArray bytes) In-memory bytes — repeatable by nature.
      final static ContentSource of(String text) UTF-8 text — repeatable.
      final static ContentSource of(Path file) A file — repeatable; length read per open so it must not change mid-put.
      final static ContentSource oneShot(InputStream stream, Long length) A ONE-SHOT stream of known length.
      • Methods inherited from class java.lang.Object

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