protected LogFileReader createNewReader ( LogFileReader other ) throws IOException { if ( other instanceof LogFileReaderImpl ) { return new LogFileReaderImpl ( ( LogFileReaderImpl ) other ) ; } throw new IOException ( "Instance of the " + other . getClass ( ) . getName ( ) + " is not clonable by " + OneLogFileRecordIterator . class . getName ( ) + "." ) ; }
Creates the new instance of a reader to read input data with based on an existing one .