public abstract class QuickDiffReference
extends java.util.Observable
| Modifier and Type | Class and Description |
|---|---|
class |
QuickDiffReference.DefaultNodeListener |
| Modifier | Constructor and Description |
|---|---|
protected |
QuickDiffReference(java.net.URL url)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected oracle.javatools.compare.algorithm.text.TextCompareContributor |
createCompareContributor()
Creates the
TextCompareContributor for the compare operation to be
performed by the Quick Diff margin. |
protected NodeListener |
createNodeListener()
Creates a
NodeListener for observing the Node associated
with the reference URL. |
void |
dispose()
Disposes of all transient reference data and detaches all listeners for the
observable state.
|
protected void |
doNotifyObservers()
Performs notification of a reference state change to the Quick Diff margin,
first clearing any locally cached compare contributor state.
|
oracle.javatools.compare.algorithm.text.TextCompareContributor |
getCompareContributor()
Gets the
TextCompareContributor for the compare operation to be
performed by the Quick Diff margin. |
protected Node |
getNode()
Gets the
Node associated with the reference URL. |
abstract java.io.InputStream |
openInputStream()
Opens an
InputStream onto the reference file. |
protected QuickDiffReference(java.net.URL url)
createNodeListener() produces a non-null result, the
listener is added to the node and will be removed in dispose().url - the reference URL.protected NodeListener createNodeListener()
NodeListener for observing the Node associated
with the reference URL. By default, returns null.NodeListener.protected final Node getNode()
Node associated with the reference URL.Node instance, if any, or null.public final oracle.javatools.compare.algorithm.text.TextCompareContributor getCompareContributor()
throws java.lang.Exception
TextCompareContributor for the compare operation to be
performed by the Quick Diff margin. This method cannot be overridden and
may return locally cached contributor instance.TextCompareContributor.java.lang.Exception - if an I/O or process exception occurs.protected oracle.javatools.compare.algorithm.text.TextCompareContributor createCompareContributor()
throws java.lang.Exception
TextCompareContributor for the compare operation to be
performed by the Quick Diff margin. This method must return a new
contributor instance based on the latest state of the reference.TextCompareContributor.java.lang.Exception - if an I/O or process exception occurs.public abstract java.io.InputStream openInputStream()
throws java.io.IOException
InputStream onto the reference file.InputStreamjava.io.IOException - if an I/O exception occurs.public void dispose()
protected void doNotifyObservers()