001package org.unix4j.unix.cat; 002 003import org.unix4j.command.Command; 004import org.unix4j.context.ExecutionContext; 005import org.unix4j.line.Line; 006import org.unix4j.processor.AbstractLineProcessor; 007import org.unix4j.processor.LineProcessor; 008 009class CatProcessor extends AbstractLineProcessor<CatArguments> { 010 011 public CatProcessor(Command<CatArguments> command, ExecutionContext context, LineProcessor output) { 012 super(command, context, output); 013 } 014 015 @Override 016 public boolean processLine(Line line) { 017 return getOutput().processLine(line); 018 } 019 020 @Override 021 public void finish() { 022 getOutput().finish(); 023 } 024}