class DefaultItemStorage extends Object implements ItemStorage, VariableResolver
Constructor and Description |
---|
DefaultItemStorage(XargsLineProcessor processor) |
Modifier and Type | Method and Description |
---|---|
protected void |
flush() |
Object |
getValue(String name)
Returns the value currently set for the variable given by its name, or
null if no such variable exists.
|
void |
incrementLineCount()
Increments the line count by one.
|
void |
storeItem(String item)
Stores the specified item.
|
public DefaultItemStorage(XargsLineProcessor processor)
public void storeItem(String item)
ItemStorage
storeItem
in interface ItemStorage
item
- the item to storepublic void incrementLineCount()
ItemStorage
incrementLineCount
in interface ItemStorage
protected void flush()
public Object getValue(String name)
VariableResolver
getValue
in interface VariableResolver
name
- the variable nameCopyright © 2024. All rights reserved.