| java.lang.Object | ||
| ↳ | java.lang.Enum<E extends java.lang.Enum<E>> | |
| ↳ | net.schmizz.sshj.sftp.OpenMode | |
| Enum Values | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| OpenMode | APPEND | Force all writes to append data at the end of the file. | |||||||||
| OpenMode | CREAT | If this flag is specified, then a new file will be created if one does not already exist (if TRUNC is specified, the new file will be truncated to zero length if it previously exists). |
|||||||||
| OpenMode | EXCL | Causes the request to fail if the named file already exists. | |||||||||
| OpenMode | READ | Open the file for reading. | |||||||||
| OpenMode | TRUNC | Forces an existing file with the same name to be truncated to zero length when creating a file by specifying
CREAT. |
|||||||||
| OpenMode | WRITE | Open the file for writing. | |||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| pflag | |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Enum
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Enum
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Comparable
| |||||||||||
If this flag is specified, then a new file will be created if one does not already exist (if TRUNC is specified, the new file will be truncated to zero length if it previously exists).
Causes the request to fail if the named file already exists. CREAT MUST also be specified if
this flag is used.
Open the file for writing. If both this and READ are specified, the file is opened for both
reading and writing.