org.silverpeas.search.indexEngine.parser
Class PipedParser

java.lang.Object
  extended by org.silverpeas.search.indexEngine.parser.PipedParser
All Implemented Interfaces:
Parser
Direct Known Subclasses:
ExcelParser, PsParser, RtfParser

public abstract class PipedParser
extends Object
implements Parser

A piped parser is a Parser which uses a pipe to output the result of his work.


Constructor Summary
PipedParser()
           
 
Method Summary
 Reader getReader(String path, String encoding)
          Returns a piped Reader giving the text content extracted by the outPutContent method.
protected abstract  void outPutContent(Writer out, String path, String encoding)
          Write the text content of the file on the given output writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PipedParser

public PipedParser()
Method Detail

outPutContent

protected abstract void outPutContent(Writer out,
                                      String path,
                                      String encoding)
                               throws IOException
Write the text content of the file on the given output writer.

Throws:
IOException

getReader

public Reader getReader(String path,
                        String encoding)
Returns a piped Reader giving the text content extracted by the outPutContent method.

Specified by:
getReader in interface Parser


Copyright © 2016 Silverpeas. All Rights Reserved.