public class RepositoryFile extends Object
Constructor and Description |
---|
RepositoryFile() |
Modifier and Type | Method and Description |
---|---|
void |
encodeAndSetContent(byte[] byteContent)
Encodes the provided byte array using Base64 and sets it as the content.
|
void |
encodeAndSetContent(String content)
Encodes the provided String using Base64 and sets it as the content.
|
String |
getBlobId() |
String |
getCommitId() |
String |
getContent() |
String |
getContentSha256() |
byte[] |
getDecodedContentAsBytes()
Returns the content as a byte array, decoding from base64 if necessary.
|
String |
getDecodedContentAsString()
Returns the content as a String, base64 decoding it if necessary.
|
Constants.Encoding |
getEncoding() |
String |
getFileName() |
String |
getFilePath() |
String |
getLastCommitId() |
String |
getRef() |
Integer |
getSize() |
void |
setBlobId(String blobId) |
void |
setCommitId(String commitId) |
void |
setContent(String content) |
void |
setContentSha256(String contentSha256) |
void |
setEncoding(Constants.Encoding encoding) |
void |
setFileName(String fileName) |
void |
setFilePath(String filePath) |
void |
setLastCommitId(String lastCommitId) |
void |
setRef(String ref) |
void |
setSize(Integer size) |
String |
toString() |
public String getFileName()
public void setFileName(String fileName)
public String getFilePath()
public void setFilePath(String filePath)
public Integer getSize()
public void setSize(Integer size)
public Constants.Encoding getEncoding()
public void setEncoding(Constants.Encoding encoding)
public String getContent()
public void setContent(String content)
public String getContentSha256()
public void setContentSha256(String contentSha256)
public String getRef()
public void setRef(String ref)
public String getBlobId()
public void setBlobId(String blobId)
public String getCommitId()
public void setCommitId(String commitId)
public String getLastCommitId()
public void setLastCommitId(String lastCommitId)
public String getDecodedContentAsString()
public byte[] getDecodedContentAsBytes()
public void encodeAndSetContent(String content)
content
- the String content to encode and set as the base64 encoded String contentpublic void encodeAndSetContent(byte[] byteContent)
byteContent
- the byte[] content to encode and set as the base64 encoded String contentCopyright © 2019. All rights reserved.