Class HeadFilter

java.lang.Object
All Implemented Interfaces:
Closeable, AutoCloseable, Readable, ChainableReader, Parameterizable

public final class HeadFilter extends BaseParamFilterReader implements ChainableReader
Reads the first n lines of a stream. (Default is first 10 lines.)

Example:

<headfilter lines="3"/>
Or:
<filterreader classname="org.apache.tools.ant.filters.HeadFilter">
    <param name="lines" value="3"/>
 </filterreader>