Package org.eclipse.compare.patch
Class ReaderCreator
java.lang.Object
org.eclipse.compare.patch.ReaderCreator
Abstract class for creating readers.
- Since:
- org.eclipse.compare.core 3.5
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether the reader can be created.abstract Reader
Creates new reader.
-
Constructor Details
-
ReaderCreator
public ReaderCreator()
-
-
Method Details
-
createReader
Creates new reader. The caller is responsible for closing the reader when finished.- Returns:
- a reader
- Throws:
CoreException
- if the reader can't be created
-
canCreateReader
public boolean canCreateReader()Returns whether the reader can be created.- Returns:
- true if the reader can be created, false otherwise
-