Package info.ejava.examples.common.dto
Class DtoUtil
java.lang.Object
info.ejava.examples.common.dto.DtoUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
init()
<T> String
marshal
(T object) <T> void
marshal
(T object, OutputStream os) <T> byte[]
marshalAsBytes
(T object) <T> String
marshalThrows
(T object) abstract <T> void
marshalThrows
(T object, OutputStream os) <T> T
<T> T
unmarshal
(InputStream is, Class<T> type) <T> T
abstract <T> T
unmarshalThrows
(InputStream is, Class<T> type) <T> T
unmarshalThrows
(String text, Class<T> type)
-
Field Details
-
DATE_FORMAT
- See Also:
-
DATETIME_FORMAT
- See Also:
-
-
Constructor Details
-
DtoUtil
public DtoUtil()
-
-
Method Details
-
marshal
-
unmarshal
-
marshalThrows
- Throws:
IOException
-
unmarshalThrows
- Throws:
IOException
-
marshalAsBytes
public <T> byte[] marshalAsBytes(T object) -
unmarshal
-
marshal
-
unmarshal
-
marshalThrows
- Throws:
IOException
-
unmarshalThrows
- Throws:
IOException
-
init
protected void init()
-