public class Content extends ResourceComparator
description, location, project
Constructor and Description |
---|
Content() |
Modifier and Type | Method and Description |
---|---|
boolean |
isBinary()
Learn whether this Content ResourceComparator is operating in binary mode.
|
protected int |
resourceCompare(Resource foo,
Resource bar)
Compare two Resources by content.
|
void |
setBinary(boolean b)
Set binary mode for this Content ResourceComparator.
|
compare, equals, hashCode
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public void setBinary(boolean b)
true
.b
- whether to compare content in binary mode.public boolean isBinary()
protected int resourceCompare(Resource foo, Resource bar)
resourceCompare
in class ResourceComparator
foo
- the first Resource.bar
- the second Resource.BuildException
- if I/O errors occur.ResourceUtils.compareContent(Resource, Resource, boolean).