Class WritableOutputFormat

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void printResults​(java.io.PrintWriter pw, SearchRequest q, java.lang.String method, java.lang.String iteration, int numberOfResults)
      Outputs the results of query q to PrintWriter pw, described by the method, iteration, and the specified limit on the number of results (0 means no limit).
      void writeResults​(java.io.OutputStream os, SearchRequest q, java.lang.String method, java.lang.String iteration, int numberOfResults)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WritableOutputFormat

        public WritableOutputFormat​(Index i)
        Created a new NullOuputFormat
    • Method Detail

      • printResults

        public void printResults​(java.io.PrintWriter pw,
                                 SearchRequest q,
                                 java.lang.String method,
                                 java.lang.String iteration,
                                 int numberOfResults)
                          throws java.io.IOException
        Description copied from interface: OutputFormat
        Outputs the results of query q to PrintWriter pw, described by the method, iteration, and the specified limit on the number of results (0 means no limit).
        Specified by:
        printResults in interface OutputFormat
        Throws:
        java.io.IOException
      • writeResults

        public void writeResults​(java.io.OutputStream os,
                                 SearchRequest q,
                                 java.lang.String method,
                                 java.lang.String iteration,
                                 int numberOfResults)
                          throws java.io.IOException
        Specified by:
        writeResults in interface RawOutputFormat
        Throws:
        java.io.IOException