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 int
compareTo(VcsFile other)
boolean
equals(Object o)
byte[]
getContent()
String
getFullPath()
String
getName()
int
hashCode()
boolean
isDirectory()
String
toString()
-
-
-
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:
getFullPath
in interfaceVcsFile
- Returns:
- path taking into account checkout rules of VCS roots
-
getContent
@NotNull public byte[] getContent() throws VcsException
- Specified by:
getContent
in 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:
isDirectory
in interfaceVcsFile
- Returns:
- true if this file is directory
-
compareTo
public int compareTo(VcsFile other)
- Specified by:
compareTo
in interfaceComparable<VcsFile>
-
-