Package com.google.common.jimfs
Class SymbolicLink
- java.lang.Object
-
- com.google.common.jimfs.File
-
- com.google.common.jimfs.SymbolicLink
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SymbolicLink(int id, java.nio.file.attribute.FileTime creationTime, JimfsPath target)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) File
copyWithoutContent(int id, java.nio.file.attribute.FileTime creationTime)
Creates a new file of the same type as this file with the given ID and creation time.static SymbolicLink
create(int id, java.nio.file.attribute.FileTime creationTime, JimfsPath target)
Creates a new symbolic link with the given ID and target.(package private) JimfsPath
target()
Returns the target path of this symbolic link.-
Methods inherited from class com.google.common.jimfs.File
closed, contentLock, copyAttributes, copyBasicAttributes, copyContentTo, decrementLinkCount, deleteAttribute, deleted, getAttribute, getAttributeKeys, getAttributeNames, getCreationTime, getLastAccessTime, getLastModifiedTime, id, incrementLinkCount, isDirectory, isRegularFile, isRootDirectory, isSymbolicLink, linked, links, opened, setAttribute, setCreationTime, setLastAccessTime, setLastModifiedTime, size, toString, unlinked
-
-
-
-
Field Detail
-
target
private final JimfsPath target
-
-
Constructor Detail
-
SymbolicLink
private SymbolicLink(int id, java.nio.file.attribute.FileTime creationTime, JimfsPath target)
-
-
Method Detail
-
create
public static SymbolicLink create(int id, java.nio.file.attribute.FileTime creationTime, JimfsPath target)
Creates a new symbolic link with the given ID and target.
-
target
JimfsPath target()
Returns the target path of this symbolic link.
-
copyWithoutContent
File copyWithoutContent(int id, java.nio.file.attribute.FileTime creationTime)
Description copied from class:File
Creates a new file of the same type as this file with the given ID and creation time. Does not copy the content of this file unless the cost of copying the content is minimal. This is because this method is called with a hold on the file system's lock.- Specified by:
copyWithoutContent
in classFile
-
-