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()
ContentRevisiongetContent in interface ContentRevisionpublic byte [] getContentAsBytes()
throws VcsException
ByteBackedContentRevisiongetContentAsBytes in interface ByteBackedContentRevisionVcsException - in case when content retrieval failspublic VirtualFile getVirtualFile()
public FilePath getFile()
getFile in interface ContentRevisionpublic VcsRevisionNumber getRevisionNumber()
ContentRevisionVcsRevisionNumber.NULL is returned. Use VcsRevisionNumber.NULL when revision number is not applicable like for
the currently uncommitted revision.getRevisionNumber in interface ContentRevisionpublic static ContentRevision create(FilePath file)
public java.lang.String toString()
toString in class java.lang.Object