@API(status=STABLE, since="1.0") public class FileSource extends Object implements FileSystemSource
TestSource
with an optional
position.FileSelector
,
Serialized FormModifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static FileSource |
from(File file)
Create a new
FileSource using the supplied file . |
static FileSource |
from(File file,
FilePosition filePosition)
|
File |
getFile()
Get the source file.
|
Optional<FilePosition> |
getPosition()
Get the
FilePosition , if available. |
URI |
getUri()
|
int |
hashCode() |
String |
toString() |
public static FileSource from(File file)
FileSource
using the supplied file
.file
- the source file; must not be null
public static FileSource from(File file, FilePosition filePosition)
file
- the source file; must not be null
filePosition
- the position in the source file; may be null
public final URI getUri()
public final File getFile()
getFile
in interface FileSystemSource
null
public final Optional<FilePosition> getPosition()
FilePosition
, if available.