Package com.bayesserver
Interface NameValuesReader
-
public interface NameValuesReader
Interface for reading name/value pairs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
contains(String name)
Determines whether a value exists for a particular name.InputStream
read(String name)
Reads the value (as a stream) for a particular name.
-
-
-
Method Detail
-
read
InputStream read(String name)
Reads the value (as a stream) for a particular name.- Parameters:
name
- The name of the value to retrieve.- Returns:
- The stream containing the value if the name exists, or throws an exception otherwise.
-
contains
boolean contains(String name)
Determines whether a value exists for a particular name.- Parameters:
name
- The name corresponding to the value.- Returns:
true
if the value exists,false
otherwise.
-
-