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.ensureAccurateMetadataneeds to betrue.- Author:
- Hendrik Schreiber
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)LonggetDeviceId()LonggetFileId()PathgetPath()inthashCode()booleanisValid()Indicates whether this object contains both a fileId and a deviceId.StringtoString()
-
-
-
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
-
-