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 voidinit()<T> Stringmarshal(T object) <T> voidmarshal(T object, OutputStream os) <T> byte[]marshalAsBytes(T object) <T> StringmarshalThrows(T object) abstract <T> voidmarshalThrows(T object, OutputStream os) <T> T<T> Tunmarshal(InputStream is, Class<T> type) <T> Tabstract <T> TunmarshalThrows(InputStream is, Class<T> type) <T> TunmarshalThrows(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()
-