public class FileSerializer extends Object implements Serializer
| Constructor and Description |
|---|
FileSerializer() |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType()
Content type that will be used in the response.
|
void |
sendFile(File file,
OutputStream os)
Write a file to an OuputStream.
|
public String getContentType()
getContentType in interface Serializerpublic void sendFile(File file, OutputStream os) throws IOException
file - File that will be written.os - The target OutputStream.IOException - if any error happens.Copyright © 2012 ElPaso Software. All Rights Reserved.