@PublicApi @NotThreadSafe public final class OpenOptions extends Object
UnderFileSystem
.Modifier and Type | Method and Description |
---|---|
static OpenOptions |
defaults() |
boolean |
equals(Object o) |
long |
getLength() |
long |
getOffset() |
boolean |
getRecoverFailedOpen() |
int |
hashCode() |
OpenOptions |
setLength(long length) |
OpenOptions |
setOffset(long offset)
Sets the offset from the start of a file to be opened for reading.
|
OpenOptions |
setRecoverFailedOpen(boolean recover) |
String |
toString() |
public static OpenOptions defaults()
OpenOptions
public long getOffset()
public long getLength()
public boolean getRecoverFailedOpen()
public OpenOptions setOffset(long offset)
offset
- within a file in bytespublic OpenOptions setLength(long length)
length
- the maximum length of the filepublic OpenOptions setRecoverFailedOpen(boolean recover)
recover
- true if failed open attempts should be recoveredCopyright © 2023. All Rights Reserved.