Package org.icij.datashare.text
Class SourcePath
- java.lang.Object
-
- org.icij.datashare.text.SourcePath
-
- All Implemented Interfaces:
Serializable,Entity
public class SourcePath extends Object implements Entity
DataShare Source File Path id =Entity.HASHER(path) Created by julien on 2/3/17.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Optional<SourcePath>create(Path path)Instantiate a newSourcePathfrom given path which must point to regular, existing, readable fileDategetAsOf()StringgetId()PathgetPath()StringtoString()
-
-
-
Method Detail
-
create
public static Optional<SourcePath> create(Path path)
Instantiate a newSourcePathfrom given path which must point to regular, existing, readable file- Parameters:
path- the file path from which to createList document- Returns:
- an Optional of
Documentif instantiation succeeded; empty Optional otherwise
-
getPath
public Path getPath()
-
getAsOf
public Date getAsOf()
-
-