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, wait
accept
public 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.Writer
write
in interface RecommendationFormat.Writer<U,I>
recommendation
- to be writtenIOException
- when IO errorpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2016. All rights reserved.