Class FileContentStreamProvider

java.lang.Object
software.amazon.awssdk.core.internal.sync.FileContentStreamProvider
All Implemented Interfaces:
ContentStreamProvider

public final class FileContentStreamProvider extends Object implements ContentStreamProvider
ContentStreamProvider implementation for files.
  • Constructor Details

    • FileContentStreamProvider

      public FileContentStreamProvider(Path filePath)
  • Method Details

    • newStream

      public InputStream newStream()
      Specified by:
      newStream in interface ContentStreamProvider
      Returns:
      The content stream.
    • name

      public String name()
      Description copied from interface: ContentStreamProvider
      Each ContentStreamProvider should return a well-formed name that can be used to identify the implementation. The stream name should only include alphanumeric characters.
      Specified by:
      name in interface ContentStreamProvider
      Returns:
      String containing the identifying name of this ContentStreamProvider implementation.