Interface FormatWriter<Type>
- Type Parameters:
Type-
public interface FormatWriter<Type>
Converts a Java Object to a mimetype
- Author:
- davidc
-
Method Summary
Modifier and TypeMethodDescriptionGets the mimetype to convert toGets the source Java class to convert fromvoidwrite(Type object, OutputStream output) Converts Java object to mimetypevoidConverts Java object to mimetype
-
Method Details
-
getSourceClass
Gets the source Java class to convert from- Returns:
- Java class
-
getDestinationMimetype
String getDestinationMimetype()Gets the mimetype to convert to- Returns:
- mimetype
-
write
Converts Java object to mimetype- Parameters:
object- Typeoutput- Writer
-
write
Converts Java object to mimetype- Parameters:
object- Typeoutput- OutputStream
-