org.apache.abdera.parser
Interface ParserOptions


public interface ParserOptions

Parser options are used to modify the behavior of the parser.


Method Summary
 boolean getAutodetectCharset()
           
 java.lang.String getCharset()
          Returns the default character set to use for the parsed document
 Factory getFactory()
          Returns the factory the parser should use
 boolean getIgnoreComments()
           
 boolean getIgnoreDoctype()
           
 boolean getIgnoreProcessingInstructions()
           
 boolean getIgnoreWhitespace()
           
 ParseFilter getParseFilter()
          Returns the Parse Filter.
 TextFilter getTextFilter()
          Returns the TextFilter.
 void setAutodetectCharset(boolean detect)
           
 void setCharset(java.lang.String charset)
          Sets the character set to use for the parsed document
 void setFactory(Factory factory)
          Sets the factory the parser should use
 void setIgnoreComments(boolean ignore)
           
 void setIgnoreDoctype(boolean ignore)
           
 void setIgnoreProcessingInstructions(boolean ignore)
           
 void setIgnoreWhitespace(boolean ignore)
           
 void setParseFilter(ParseFilter parseFilter)
          Sets the Parse Filter.
 void setTextFilter(TextFilter textFilter)
          Sets the TextFilter.
 

Method Detail

getFactory

Factory getFactory()
Returns the factory the parser should use


setFactory

void setFactory(Factory factory)
Sets the factory the parser should use


getCharset

java.lang.String getCharset()
Returns the default character set to use for the parsed document


setCharset

void setCharset(java.lang.String charset)
Sets the character set to use for the parsed document


getParseFilter

ParseFilter getParseFilter()
Returns the Parse Filter. The parse filter is a set of XML QNames that the parse should watch out for. If the filter is null, the parser will parse all elements in the document. I the filter is not null, the parser will only pay attention to elements whose QName's appear in the filter list.


setParseFilter

void setParseFilter(ParseFilter parseFilter)
Sets the Parse Filter. The parse filter is a set of XML QNames that the parse should watch out for. If the filter is null, the parser will parse all elements in the document. I the filter is not null, the parser will only pay attention to elements whose QName's appear in the filter list.


getTextFilter

TextFilter getTextFilter()
Returns the TextFilter. The text filter provides filtering for all character strings encountered during the parse process.


setTextFilter

void setTextFilter(TextFilter textFilter)
Sets the TextFilter. The text filter provides filtering for all character strings encountered during the parse process.


getAutodetectCharset

boolean getAutodetectCharset()

setAutodetectCharset

void setAutodetectCharset(boolean detect)

setIgnoreDoctype

void setIgnoreDoctype(boolean ignore)

setIgnoreComments

void setIgnoreComments(boolean ignore)

setIgnoreWhitespace

void setIgnoreWhitespace(boolean ignore)

setIgnoreProcessingInstructions

void setIgnoreProcessingInstructions(boolean ignore)

getIgnoreDoctype

boolean getIgnoreDoctype()

getIgnoreComments

boolean getIgnoreComments()

getIgnoreWhitespace

boolean getIgnoreWhitespace()

getIgnoreProcessingInstructions

boolean getIgnoreProcessingInstructions()