Modifier and Type | Method and Description |
---|---|
AwsProperties |
awsProperties() |
boolean |
exists()
Note: this may be stale if file was deleted since metadata is cached for size/existence checks.
|
static S3InputFile |
fromLocation(java.lang.String location,
software.amazon.awssdk.services.s3.S3Client client) |
static S3InputFile |
fromLocation(java.lang.String location,
software.amazon.awssdk.services.s3.S3Client client,
AwsProperties awsProperties) |
long |
getLength()
Note: this may be stale if file was deleted since metadata is cached for size/existence checks.
|
protected software.amazon.awssdk.services.s3.model.HeadObjectResponse |
getObjectMetadata() |
java.lang.String |
location() |
SeekableInputStream |
newStream()
Opens a new
SeekableInputStream for the underlying data file |
java.lang.String |
toString() |
public static S3InputFile fromLocation(java.lang.String location, software.amazon.awssdk.services.s3.S3Client client)
public static S3InputFile fromLocation(java.lang.String location, software.amazon.awssdk.services.s3.S3Client client, AwsProperties awsProperties)
public long getLength()
public SeekableInputStream newStream()
InputFile
SeekableInputStream
for the underlying data filepublic java.lang.String location()
public AwsProperties awsProperties()
public boolean exists()
protected software.amazon.awssdk.services.s3.model.HeadObjectResponse getObjectMetadata() throws software.amazon.awssdk.services.s3.model.S3Exception
software.amazon.awssdk.services.s3.model.S3Exception
public java.lang.String toString()
toString
in class java.lang.Object