Class ReaderCreator


  • public abstract class ReaderCreator
    extends java.lang.Object
    Abstract class for creating readers.
    Since:
    org.eclipse.compare.core 3.5
    • Constructor Summary

      Constructors 
      Constructor Description
      ReaderCreator()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canCreateReader()
      Returns whether the reader can be created.
      abstract java.io.Reader createReader()
      Creates new reader.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReaderCreator

        public ReaderCreator()
    • Method Detail

      • createReader

        public abstract java.io.Reader createReader()
                                             throws CoreException
        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