|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface YamlOperations
This interfaces contains all commonly used Yaml functions. Yaml contains all of these methods as
static methods for convient access while YamlConfig implements this interface.
| Method Summary | ||
|---|---|---|
java.lang.String |
dump(java.lang.Object obj)
Dumps an object into Yaml format |
|
java.lang.String |
dump(java.lang.Object obj,
boolean minimalOutput)
Dumps an object into Yaml format |
|
void |
dump(java.lang.Object obj,
java.io.File file)
Dumps an object to a file in Yaml format |
|
void |
dump(java.lang.Object obj,
java.io.File file,
boolean minimalOutput)
Dumps an object to a file in Yaml format |
|
java.lang.String |
dumpStream(java.util.Iterator iterator)
Dumps a stream of objects specified with an iterator to a String in Yaml format, one document per object |
|
java.lang.String |
dumpStream(java.util.Iterator iterator,
boolean minimalOutput)
Dumps a stream of objects specified with an iterator to a String in Yaml format, one document per object |
|
void |
dumpStream(java.util.Iterator iterator,
java.io.File file)
Dumps a stream of objects specified with an iterator to a file in Yaml format, one document per object |
|
void |
dumpStream(java.util.Iterator iterator,
java.io.File file,
boolean minimalOutput)
Dumps a stream of objects specified with an iterator to a file in Yaml format, one document per object |
|
java.lang.Object |
load(java.io.File file)
Loads one object from a file in Yaml format |
|
java.lang.Object |
load(java.io.InputStream in)
Loads one object from an input stream |
|
java.lang.Object |
load(java.io.Reader in)
Loads one object from a Reader |
|
java.lang.Object |
load(java.lang.String yamlText)
Loads one object from a string of Yaml text |
|
YamlStream |
loadStream(java.io.File file)
Loads the objects in a file in Yaml format into a YamlStream, which is used to iterate the objects in the file |
|
YamlStream |
loadStream(java.io.InputStream in)
Loads the objects in input stream in Yaml format into a YamlStream, which is used to iterate the objects in the input stream |
|
YamlStream |
loadStream(java.io.Reader in)
Loads the objects in reader in Yaml format into a YamlStream, which is used to iterate the objects in the input stream |
|
YamlStream |
loadStream(java.lang.String yamlText)
Loads the objects in a Yaml text into a YamlStream, which is used to iterate the objects in the Yaml text |
|
|
loadStreamOfType(java.io.File file,
java.lang.Class<T> clazz)
Loads the objects of a specified type in a file in Yaml format into a YamlStream, which is used to iterate the objects in the file |
|
|
loadStreamOfType(java.io.InputStream in,
java.lang.Class<T> clazz)
Loads the objects of a specified type in an input stream in Yaml format into a YamlStream, which is used to iterate the objects in the input stream |
|
|
loadStreamOfType(java.io.Reader in,
java.lang.Class<T> clazz)
Loads the objects of a specified type in a reader in Yaml format into a YamlStream, which is used to iterate the objects in the input stream |
|
|
loadStreamOfType(java.lang.String yamlText,
java.lang.Class<T> clazz)
Loads the objects of a specified type in a in Yaml format into a YamlStream, which is used to iterate the objects in the file |
|
|
loadType(java.io.File file,
java.lang.Class<T> clazz)
Loads one object from a file in Yaml format |
|
|
loadType(java.io.InputStream in,
java.lang.Class<T> clazz)
Loads one object from an input stream of the specified type |
|
|
loadType(java.io.Reader in,
java.lang.Class<T> clazz)
Loads one object from a a reader of the specified type |
|
|
loadType(java.lang.String yamlText,
java.lang.Class<T> clazz)
Loads one object from a file in Yaml format |
|
| Method Detail |
|---|
java.lang.Object load(java.io.InputStream in)
in - the stream to read from
java.lang.Object load(java.io.Reader in)
in - the reader to read from
java.lang.Object load(java.io.File file)
throws java.io.FileNotFoundException
file - the file to read from
java.io.FileNotFoundExceptionjava.lang.Object load(java.lang.String yamlText)
yamlText - the text to read from
<T> T loadType(java.io.InputStream in,
java.lang.Class<T> clazz)
T - the specified typein - the stream to read fromclazz - the class of the specified type
<T> T loadType(java.io.Reader in,
java.lang.Class<T> clazz)
T - the specified typein - the reader to read fromclazz - the class of the specified type
<T> T loadType(java.io.File file,
java.lang.Class<T> clazz)
throws java.io.FileNotFoundException
T - the specified typefile - the file to read fromclazz - the class of the specified type
java.io.FileNotFoundException
<T> T loadType(java.lang.String yamlText,
java.lang.Class<T> clazz)
T - the specified typeyamlText - the Yaml textclazz - the class of the specified type
YamlStream loadStream(java.io.InputStream in)
in - the stream to read from
YamlStream loadStream(java.io.Reader in)
in - the reader to read from
YamlStream loadStream(java.io.File file)
throws java.io.FileNotFoundException
file - the file to read from
java.io.FileNotFoundExceptionYamlStream loadStream(java.lang.String yamlText)
yamlText -
<T> YamlStream<T> loadStreamOfType(java.io.InputStream in,
java.lang.Class<T> clazz)
T - the specified typein - the stream to read fromclazz - the class of the specified type
<T> YamlStream<T> loadStreamOfType(java.io.Reader in,
java.lang.Class<T> clazz)
T - the specified typein - the reader to read fromclazz - the class of the specified type
<T> YamlStream<T> loadStreamOfType(java.io.File file,
java.lang.Class<T> clazz)
throws java.io.FileNotFoundException
T - the specified typefile - the file to read fromclazz - the class of the specified type
java.io.FileNotFoundException
<T> YamlStream<T> loadStreamOfType(java.lang.String yamlText,
java.lang.Class<T> clazz)
T - the specified typeyamlText - the text to read fromclazz - the class of the specified type
java.io.FileNotFoundException
void dump(java.lang.Object obj,
java.io.File file)
throws java.io.FileNotFoundException
obj - the object to dumpfile - the file to dump to
java.io.FileNotFoundException
void dump(java.lang.Object obj,
java.io.File file,
boolean minimalOutput)
throws java.io.FileNotFoundException
obj - the object to dumpfile - the file to dump tominimalOutput - whether minimal output is on
java.io.FileNotFoundExceptionjava.lang.String dump(java.lang.Object obj)
obj - the object to dump
java.lang.String dump(java.lang.Object obj,
boolean minimalOutput)
obj - the object to dumpminimalOutput - whether minimal output is on
void dumpStream(java.util.Iterator iterator,
java.io.File file)
throws java.io.FileNotFoundException
iterator - the iterator to read objects fromfile - the file to write to
java.io.FileNotFoundException
void dumpStream(java.util.Iterator iterator,
java.io.File file,
boolean minimalOutput)
throws java.io.FileNotFoundException
iterator - the iterator to read objects fromfile - the file to write tominimalOutput - whether minimal output is on
java.io.FileNotFoundExceptionjava.lang.String dumpStream(java.util.Iterator iterator)
iterator - the iterator to read objects from
java.lang.String dumpStream(java.util.Iterator iterator,
boolean minimalOutput)
iterator - the iterator to read objects fromminimalOutput - whether minimal output is on
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||