Interface FormatWriter<Type>
-
- Type Parameters:
Type-
public interface FormatWriter<Type>Converts a Java Object to a mimetype- Author:
- davidc
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDestinationMimetype()Gets the mimetype to convert tojava.lang.Class<? extends Type>getSourceClass()Gets the source Java class to convert fromvoidwrite(Type object, java.io.OutputStream output)Converts Java object to mimetypevoidwrite(Type object, java.io.Writer output)Converts Java object to mimetype
-
-
-
Method Detail
-
getSourceClass
java.lang.Class<? extends Type> getSourceClass()
Gets the source Java class to convert from- Returns:
- Java class
-
getDestinationMimetype
java.lang.String getDestinationMimetype()
Gets the mimetype to convert to- Returns:
- mimetype
-
write
void write(Type object, java.io.Writer output)
Converts Java object to mimetype- Parameters:
object- Typeoutput- Writer
-
write
void write(Type object, java.io.OutputStream output)
Converts Java object to mimetype- Parameters:
object- Typeoutput- OutputStream
-
-