public class CurrentContentRevision extends java.lang.Object implements ByteBackedContentRevision
Constructor and Description |
---|
CurrentContentRevision(FilePath file) |
Modifier and Type | Method and Description |
---|---|
static ContentRevision |
create(FilePath file) |
java.lang.String |
getContent()
Content of the revision.
|
byte [] |
getContentAsBytes()
Content of the revision.
|
FilePath |
getFile() |
VcsRevisionNumber |
getRevisionNumber()
Revision ID.
|
VirtualFile |
getVirtualFile() |
java.lang.String |
toString() |
protected FilePath myFile
public CurrentContentRevision(FilePath file)
public java.lang.String getContent()
ContentRevision
getContent
in interface ContentRevision
public byte [] getContentAsBytes() throws VcsException
ByteBackedContentRevision
getContentAsBytes
in interface ByteBackedContentRevision
VcsException
- in case when content retrieval failspublic VirtualFile getVirtualFile()
public 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
public static ContentRevision create(FilePath file)
public java.lang.String toString()
toString
in class java.lang.Object