Package com.tagtraum.core
Class FileId
- java.lang.Object
-
- com.tagtraum.core.FileId
-
public class FileId extends Object
Id for a path that persists, even if the path is renamed or the computer is restarted. For this to work properly on Windows, the system propertysun.nio.fs.ensureAccurateMetadata
needs to betrue
.- Author:
- Hendrik Schreiber
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Long
getDeviceId()
Long
getFileId()
Path
getPath()
int
hashCode()
boolean
isValid()
Indicates whether this object contains both a fileId and a deviceId.String
toString()
-
-
-
Constructor Detail
-
FileId
public FileId(Path path) throws IOException
- Throws:
IOException
-
FileId
public FileId(Path path, BasicFileAttributes attributes) throws IOException
- Throws:
IOException
-
FileId
public FileId(Path path, String fileStoreType) throws IOException
- Throws:
IOException
-
FileId
public FileId(Path path, BasicFileAttributes attributes, String fileStoreType) throws IOException
- Throws:
IOException
-
-