|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SparkReader
This defines the interface for classes that can read Spark objects from some external form.
| Method Summary | |
|---|---|
TypeFactory |
getTypeFactory()
This will return the TypeFactory being used. |
SV |
read()
This is the heart of the reader. |
void |
setSource(java.io.InputStream source)
This will set the source from which objects are to be read. |
void |
setSource(java.lang.String source)
This will set a string from which objects can be read. |
void |
setTypeFactory(TypeFactory factory)
This will set the TypeFactory to be used in constructing objects based on what is read from the external form. |
| Method Detail |
|---|
void setTypeFactory(TypeFactory factory)
factory - the factory to be used in translating type names into objectsTypeFactory getTypeFactory()
void setSource(java.io.InputStream source)
source - an input stream from which to read objects.void setSource(java.lang.String source)
source - the source string from which objects can be read
java.lang.RuntimeException - if a particular format cannot be read from a string.
This would be true if the format was binary.SV read()
java.lang.RuntimeException - if there are any syntax errors or type conversion errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||