Modifier and Type | Method and Description |
---|---|
boolean |
exists() |
static GCSInputFile |
fromLocation(java.lang.String location,
com.google.cloud.storage.Storage storage,
GCPProperties gcpProperties) |
protected GCPProperties |
gcpProperties() |
protected com.google.cloud.storage.Blob |
getBlob() |
long |
getLength()
Returns the total length of the file, in bytes
|
java.lang.String |
location() |
SeekableInputStream |
newStream()
Opens a new
SeekableInputStream for the underlying data file |
java.lang.String |
toString() |
public static GCSInputFile fromLocation(java.lang.String location, com.google.cloud.storage.Storage storage, GCPProperties gcpProperties)
public long getLength()
InputFile
public SeekableInputStream newStream()
InputFile
SeekableInputStream
for the underlying data filepublic java.lang.String location()
protected GCPProperties gcpProperties()
public boolean exists()
protected com.google.cloud.storage.Blob getBlob()
public java.lang.String toString()
toString
in class java.lang.Object