Package ubic.gemma.core.analysis.service
Interface FileService<T>
-
- Type Parameters:
T
- the type of entity to serialize
- All Known Subinterfaces:
DifferentialExpressionAnalysisResultListFileService
,ExpressionAnalysisResultSetFileService
,ExpressionDataFileService
,JsonFileService<T>
,TsvFileService<T>
- All Known Implementing Classes:
AbstractFileService
,DifferentialExpressionAnalysisResultListFileServiceImpl
,ExpressionAnalysisResultSetFileServiceImpl
,ExpressionDataFileServiceImpl
,MatrixWriter
public interface FileService<T>
Interface for a service that serialize entities.- Author:
- poirigui
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
write(T entity, File file, String contentType)
void
write(T entity, Writer writer, String contentType)
Write a given entity to an appendable with a given content type.
-
-
-
Method Detail
-
write
void write(T entity, Writer writer, String contentType) throws IOException
Write a given entity to an appendable with a given content type.- Throws:
IOException
-
write
void write(T entity, File file, String contentType) throws IOException
- Throws:
IOException
-
-