java.lang.Cloneable
, java.util.Comparator<Resource>
public class Content extends ResourceComparator
description, location, project
Constructor | Description |
---|---|
Content() |
Modifier and Type | Method | 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.
|
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
compare, equals, getCheckedRef, hashCode
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)