Florian Nücke | c231f61 | 2013-10-25 02:33:08 +0200 | [diff] [blame] | 1 | package li.cil.oc.api.fs; |
| 2 | |
| 3 | /** |
| 4 | * Possible file modes. |
| 5 | * <p/> |
Florian Nücke | c51d551 | 2013-10-28 12:36:10 +0100 | [diff] [blame] | 6 | * This is used when opening files from a {@link FileSystem}. |
Florian Nücke | c231f61 | 2013-10-25 02:33:08 +0200 | [diff] [blame] | 7 | */ |
| 8 | public enum Mode { |
| 9 | /** |
| 10 | * Open a file in reading mode. |
| 11 | */ |
| 12 | Read, |
| 13 | |
| 14 | /** |
| 15 | * Open a file in writing mode, overwriting existing contents. |
| 16 | */ |
| 17 | Write, |
| 18 | |
| 19 | /** |
| 20 | * Open a file in append mode, writing new data after existing contents. |
| 21 | */ |
Florian Nücke | c51d551 | 2013-10-28 12:36:10 +0100 | [diff] [blame] | 22 | Append |
Florian Nücke | c231f61 | 2013-10-25 02:33:08 +0200 | [diff] [blame] | 23 | } |