◆ 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
Member Function Documentation
◆ getLastModified()
long fiftyone.common.wrappers.io.FileWrapperDefault.getLastModified ( ) Get the time the file was last modified.
- Returns
- last modified date
Implements fiftyone.common.wrappers.io.FileWrapper.
◆ getPath()
String fiftyone.common.wrappers.io.FileWrapperDefault.getPath ( ) ◆ getReader()
BinaryReader fiftyone.common.wrappers.io.FileWrapperDefault.getReader ( ) throws IOException Get a BinaryReader for this file, positioned at the first byte.
The file must exist.
- Returns
- new BinaryReader
- Exceptions
-
- IOException - if the file is not found
Implements fiftyone.common.wrappers.io.FileWrapper.
◆ getWriter()
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.
- Returns
- new BinaryWriter
- Exceptions
-
- IOException - if the file is not found
Implements fiftyone.common.wrappers.io.FileWrapper.