All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.unix4j.unix.xargs.ItemStorage Maven / Gradle / Ivy

There is a newer version: 0.6
Show newest version
package org.unix4j.unix.xargs;

import org.unix4j.variable.VariableContext;

/**
 * Stores items found by an {@link Itemizer}. The items are usually stored in
 * a {@link VariableContext} in form of string variables.
 */
interface ItemStorage {
	/**
	 * Stores the specified item. Storing an item may also trigger a command
	 * invocation if the max-args condition is fulfilled.
	 * 
	 * @param item the item to store
	 */
	void storeItem(String item);
	
	/**
	 * Increments the line count by one. Usually called once for every line, but
	 * sometimes a line is logically combined with the next line and therefore
	 * not counted.
	 */
	void incrementLineCount();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy