| Modifier and Type | Class and Description |
|---|---|
static class |
MFileS3.Provider |
| Constructor and Description |
|---|
MFileS3(CdmS3Uri s3Uri) |
MFileS3(CdmS3Uri s3Uri,
long len,
long lm) |
MFileS3(java.lang.String s3Uri) |
MFileS3(java.lang.String s3Uri,
long len,
long lm) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MFile o) |
boolean |
equals(java.lang.Object o) |
boolean |
exists()
Check if the MFile exists
|
java.lang.Object |
getAuxInfo() |
MFileS3 |
getChild(java.lang.String newFilename)
Get child MFile of this MFile
|
software.amazon.awssdk.core.ResponseInputStream<software.amazon.awssdk.services.s3.model.GetObjectResponse> |
getInputStream()
Get the MFile InputStream
|
long |
getLastModified()
Get time of last modification at the time the MFile object was created
|
long |
getLength()
Size of file in bytes
|
java.lang.String |
getName()
The name is the farthest element from the root in the directory hierarchy.
|
MFile |
getParent()
Get the parent of this
|
java.lang.String |
getPath()
Get full path name, replace \\ with /
|
int |
hashCode() |
boolean |
isDirectory() |
java.lang.String |
relativize(MFile other)
Construct a relative key path (as if it were a file path) between this MFile and a given MFile.
|
void |
setAuxInfo(java.lang.Object auxInfo) |
long |
updateLastModified()
Update last modified by fetching from a head request
|
long |
updateLength()
Update file length by fetching from a head request
|
void |
writeToStream(java.io.OutputStream outputStream)
Write the MFile to an OutputStream
|
void |
writeToStream(java.io.OutputStream outputStream,
long offset,
long maxBytes)
Write the MFile to an OutputStream
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisReadable, isZipFilepublic MFileS3(java.lang.String s3Uri)
throws java.io.IOException
java.io.IOExceptionpublic MFileS3(CdmS3Uri s3Uri)
public MFileS3(java.lang.String s3Uri,
long len,
long lm)
throws java.io.IOException
java.io.IOExceptionpublic MFileS3(CdmS3Uri s3Uri, long len, long lm)
public long getLastModified()
MFilegetLastModified in interface MFilepublic long updateLastModified()
public long getLength()
MFilepublic long updateLength()
public boolean isDirectory()
isDirectory in interface MFilepublic java.lang.String getPath()
MFilepublic java.lang.String getName()
MFile@Nullable public MFile getParent() throws java.io.IOException
MFilepublic int compareTo(MFile o)
@Nullable public java.lang.Object getAuxInfo()
getAuxInfo in interface MFilepublic void setAuxInfo(java.lang.Object auxInfo)
setAuxInfo in interface MFilepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic boolean exists()
MFilepublic software.amazon.awssdk.core.ResponseInputStream<software.amazon.awssdk.services.s3.model.GetObjectResponse> getInputStream()
MFilegetInputStream in interface MFilepublic void writeToStream(java.io.OutputStream outputStream)
throws java.io.IOException
MFilewriteToStream in interface MFileoutputStream - the OutputStream the MFile contents should be written tojava.io.IOExceptionpublic void writeToStream(java.io.OutputStream outputStream,
long offset,
long maxBytes)
throws java.io.IOException
MFilewriteToStream in interface MFileoutputStream - the OutputStream the MFile contents should be written tooffset - the index of the first byte to write outmaxBytes - the maximum number of bytes to copyjava.io.IOException@Nullable public MFileS3 getChild(java.lang.String newFilename)
MFilepublic java.lang.String relativize(MFile other)
relativize in interface MFileother - the MFile to relativize against this MFile's path