public class BinaryFileData extends ConfigFileData
DEFAULT_CONFIG_DELIM_END, DEFAULT_CONFIG_DELIM_START, MAX_FILE_SIZE| Constructor and Description |
|---|
BinaryFileData(java.io.InputStream data,
long size) |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getContents() |
long |
getContentSize() |
java.io.InputStream |
getContentStream() |
boolean |
isBinary() |
boolean |
matchesRevision(ConfigRevision cRevision) |
void |
processRevisedContentFrom(ConfigRevision rev)
Basically Extension point to update the relevant in this data file
with the content provided in the revision param.
|
void |
setContents(java.io.InputStream data) |
void |
setContentSize(long size) |
java.lang.String |
toString() |
protected void |
validateContents(ValidatorResult result,
boolean onCreate) |
extractInfo, getGroup, getMacroEnd, getMacroStart, getOwner, getPath, getPermissions, getRevNumber, getSelinuxCtx, getType, isFile, makeValidationMap, setGroup, setMacroEnd, setMacroStart, setOwner, setPath, setPermissions, setRevNumber, setSelinuxCtx, setType, validate, validatePath, validateSELinuxpublic BinaryFileData(java.io.InputStream data,
long size)
data - the contents to setsize - the contentSize to setpublic java.io.InputStream getContents()
public void setContents(java.io.InputStream data)
data - the contents to setpublic long getContentSize()
getContentSize in class ConfigFileDatapublic void setContentSize(long size)
size - the contentSize to setpublic java.io.InputStream getContentStream()
getContentStream in class ConfigFileDataprotected void validateContents(ValidatorResult result, boolean onCreate)
validateContents in class ConfigFileDatapublic boolean isBinary()
isBinary in class ConfigFileDatapublic void processRevisedContentFrom(ConfigRevision rev)
processRevisedContentFrom in class ConfigFileDatarev - the revision to copy stuff from..public java.lang.String toString()
toString in class ConfigFileDatapublic boolean matchesRevision(ConfigRevision cRevision)
matchesRevision in class ConfigFileDatacRevision - config revision