T
- the type parameterpublic interface StringSerializer<T>
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
T |
from(java.io.File file)
Create the object type from the given file.
|
T |
from(java.io.InputStream stream)
Create the object type from the given stream.
|
T |
from(java.io.Reader reader)
Create the object type from the given reader.
|
T |
from(java.lang.String data)
Create the object type from the given string.
|
T |
from(java.io.Writer writer)
Create the object type from the given writer.
|
void |
to(java.io.File out,
T object)
Serialize the given object to its equivalent to the output file.
|
void |
to(java.io.OutputStream out,
T object)
Serialize the given object to its equivalent to the output stream.
|
void |
to(java.io.Writer out,
T object)
Serialize the given object to its equivalent to the output writer.
|
T from(java.lang.String data)
data
- the stringT from(java.io.Reader reader)
reader
- the stringT from(java.io.InputStream stream)
stream
- the stringT from(java.io.File file)
file
- the stringT from(java.io.Writer writer)
writer
- the writer instancevoid to(java.io.OutputStream out, T object)
out
- the output streamobject
- the object to serializevoid to(java.io.Writer out, T object)
out
- the output writerobject
- the object to serializevoid to(java.io.File out, T object)
out
- the output fileobject
- the object to serialize