protected class TuplesRecommendationFormat.Writer extends Object implements RecommendationFormat.Writer<U,I>
| Constructor and Description |
|---|
Writer(OutputStream out)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
write(Recommendation<U,I> recommendation)
Writes the recommendation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptpublic Writer(OutputStream out) throws IOException
out - output stream where recommendations are writtenIOException - when I/O problemspublic void write(Recommendation<U,I> recommendation) throws IOException
RecommendationFormat.Writerwrite in interface RecommendationFormat.Writer<U,I>recommendation - to be writtenIOException - when IO errorpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2016. All rights reserved.