Package jetbrains.buildServer.vcs
Class VcsFileImpl
- java.lang.Object
-
- jetbrains.buildServer.vcs.VcsFileImpl
-
- All Implemented Interfaces:
Comparable<VcsFile>,VcsFile
public class VcsFileImpl extends Object implements VcsFile
- Author:
- dmitry.neverov
-
-
Constructor Summary
Constructors Constructor Description VcsFileImpl(VcsWorkspaceAccess vcs, String parentDirPath, String name, boolean directory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(VcsFile other)booleanequals(Object o)byte[]getContent()StringgetFullPath()StringgetName()inthashCode()booleanisDirectory()StringtoString()
-
-
-
Constructor Detail
-
VcsFileImpl
public VcsFileImpl(@NotNull VcsWorkspaceAccess vcs, @NotNull String parentDirPath, @NotNull String name, boolean directory)
-
-
Method Detail
-
getName
@NotNull public String getName()
-
getFullPath
@NotNull public String getFullPath()
- Specified by:
getFullPathin interfaceVcsFile- Returns:
- path taking into account checkout rules of VCS roots
-
getContent
@NotNull public byte[] getContent() throws VcsException- Specified by:
getContentin interfaceVcsFile- Returns:
- binary content of the file
- Throws:
VcsException- in case of any VCS errors or when file is directory
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectoryin interfaceVcsFile- Returns:
- true if this file is directory
-
compareTo
public int compareTo(VcsFile other)
- Specified by:
compareToin interfaceComparable<VcsFile>
-
-