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() |
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.
|
String |
getEncoding() |
String |
getFileName() |
String |
getFilePath() |
String |
getLastCommitId() |
String |
getRef() |
Integer |
getSize() |
void |
setBlobId(String blobId) |
void |
setCommitId(String commitId) |
void |
setContent(String content) |
void |
setEncoding(String 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 String getEncoding()
public void setEncoding(String encoding)
public String getContent()
public void setContent(String content)
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.