org.carrot2.webapp.serializers
Class C2XMLSerializer

java.lang.Object
  extended by org.carrot2.webapp.serializers.C2XMLSerializer
All Implemented Interfaces:
RawClustersSerializer

public final class C2XMLSerializer
extends Object
implements RawClustersSerializer

An implementation of RawClustersSerializer that produces the standard Carrot2 XML stream with documents and clusters using the SaveXmlFilterComponent. This serializer is not available through any factory, it is created directly by the QueryProcessorServlet.

Author:
Stanislaw Osinski

Constructor Summary
C2XMLSerializer()
           
 
Method Summary
 void endResult(long clusteringTime)
           
 String getContentType()
           
 void processingError(Throwable cause)
           
 void startResult(OutputStream os, List rawDocumentsList, javax.servlet.http.HttpServletRequest request, String query)
           
 void write(RawCluster cluster)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

C2XMLSerializer

public C2XMLSerializer()
Method Detail

startResult

public void startResult(OutputStream os,
                        List rawDocumentsList,
                        javax.servlet.http.HttpServletRequest request,
                        String query)
                 throws IOException
Specified by:
startResult in interface RawClustersSerializer
Throws:
IOException

write

public void write(RawCluster cluster)
           throws IOException
Specified by:
write in interface RawClustersSerializer
Throws:
IOException

endResult

public void endResult(long clusteringTime)
               throws IOException
Specified by:
endResult in interface RawClustersSerializer
Throws:
IOException

getContentType

public String getContentType()
Specified by:
getContentType in interface RawClustersSerializer

processingError

public void processingError(Throwable cause)
                     throws IOException
Specified by:
processingError in interface RawClustersSerializer
Throws:
IOException


Copyright (c) Dawid Weiss, Stanislaw Osinski