Package org.apache.tika.config
Class Param<T>
- java.lang.Object
-
- org.apache.tika.config.Param<T>
-
- Type Parameters:
T
- value type. Should be serializable to string and have a constructor with string param
- All Implemented Interfaces:
Serializable
public class Param<T> extends Object implements Serializable
This is a serializable model class for parameters from configuration file.- Since:
- Apache Tika 1.14
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Class<T>
getType()
String
getTypeString()
T
getValue()
static <T> Param<T>
load(InputStream stream)
static <T> Param<T>
load(Node node)
void
save(OutputStream stream)
void
save(Document doc, Node node)
void
setName(String name)
void
setType(Class<T> type)
void
setTypeString(String type)
String
toString()
-
-
-
Method Detail
-
load
public static <T> Param<T> load(InputStream stream) throws SAXException, IOException, TikaException
- Throws:
SAXException
IOException
TikaException
-
load
public static <T> Param<T> load(Node node) throws TikaConfigException
- Throws:
TikaConfigException
-
getName
public String getName()
-
setName
public void setName(String name)
-
getTypeString
public String getTypeString()
-
setTypeString
public void setTypeString(String type)
-
getValue
public T getValue()
-
save
public void save(OutputStream stream) throws TransformerException, TikaException
- Throws:
TransformerException
TikaException
-
-