public class VcsCurrentRevisionProxy extends java.lang.Object implements ByteBackedContentRevision
Modifier and Type | Method and Description |
---|---|
static VcsCurrentRevisionProxy |
create(VirtualFile file,
Project project) |
java.lang.String |
getContent()
Content of the revision.
|
byte [] |
getContentAsBytes()
Content of the revision.
|
FilePath |
getFile() |
VcsRevisionNumber |
getRevisionNumber()
Revision ID.
|
public static VcsCurrentRevisionProxy create(VirtualFile file, Project project)
public java.lang.String getContent() throws VcsException
ContentRevision
getContent
in interface ContentRevision
VcsException
- in case when content retrieval failspublic byte [] getContentAsBytes() throws VcsException
ByteBackedContentRevision
getContentAsBytes
in interface ByteBackedContentRevision
VcsException
- in case when content retrieval failspublic FilePath getFile()
getFile
in interface ContentRevision
public VcsRevisionNumber getRevisionNumber()
ContentRevision
VcsRevisionNumber.NULL
is returned. Use VcsRevisionNumber.NULL
when revision number is not applicable like for
the currently uncommitted revision.getRevisionNumber
in interface ContentRevision