◆ FileWrapperDefault()
| fiftyone.common.wrappers.io.FileWrapperDefault.FileWrapperDefault | ( | String | path | ) |
Construct a new instance of FileWrapper using an existing file located at the path provided.
- Parameters
-
- path - path to the data file
\r\n
Default implementation of FileWrapper using basic file operations.
| FileWrapperDefault (String path)
Construct a new instance of FileWrapper using an existing file located at the path provided. More...
| |
| BinaryWriter | getWriter () throws IOException
Get a BinaryWriter for this file, positioned at the first byte. More...
|
| BinaryReader | getReader () throws IOException
Get a BinaryReader for this file, positioned at the first byte. More...
|
| long | getLastModified ()
Get the time the file was last modified. More...
|
| String | getPath ()
Get the path to the data file. More...
|
| boolean | exists () |
| fiftyone.common.wrappers.io.FileWrapperDefault.FileWrapperDefault | ( | String | path | ) |
Construct a new instance of FileWrapper using an existing file located at the path provided.
| long fiftyone.common.wrappers.io.FileWrapperDefault.getLastModified | ( | ) |
Get the time the file was last modified.
Implements fiftyone.common.wrappers.io.FileWrapper.
| String fiftyone.common.wrappers.io.FileWrapperDefault.getPath | ( | ) |
| BinaryReader fiftyone.common.wrappers.io.FileWrapperDefault.getReader | ( | ) | throws IOException |
Get a BinaryReader for this file, positioned at the first byte.
The file must exist.
Implements fiftyone.common.wrappers.io.FileWrapper.
| BinaryWriter fiftyone.common.wrappers.io.FileWrapperDefault.getWriter | ( | ) | throws IOException |
Get a BinaryWriter for this file, positioned at the first byte.
The file must already exist.
Implements fiftyone.common.wrappers.io.FileWrapper.