◆ getLastModified()
long fiftyone.common.wrappers.io.FileWrapperMemory.getLastModified | ( | ) |
Get the time the file was last modified.
- Returns
- last modified date
Implements fiftyone.common.wrappers.io.FileWrapper.
\r\n
In memory implementation of the FileWrapperFactory.
This is only used for tests, where it makes more sense to write things to memory rather than writing to the actual file system.
FileWrapperMemory ()
Construct a new empty FileWrapper instance.
| |
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 () |
ByteArrayOutputStream | outputStream
Stream containing the data for the data file in memory.
|
long fiftyone.common.wrappers.io.FileWrapperMemory.getLastModified | ( | ) |
Get the time the file was last modified.
Implements fiftyone.common.wrappers.io.FileWrapper.
String fiftyone.common.wrappers.io.FileWrapperMemory.getPath | ( | ) |
BinaryReader fiftyone.common.wrappers.io.FileWrapperMemory.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.FileWrapperMemory.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.