|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.abdera.util.AbstractParserOptions
public abstract class AbstractParserOptions
Non thread-safe abstract implementation of ParserOptions
Field Summary | |
---|---|
protected java.lang.String |
charset
|
protected CompressionUtil.CompressionCodec[] |
codecs
|
protected boolean |
detect
|
protected Factory |
factory
|
protected boolean |
filterreserved
|
protected ParseFilter |
parseFilter
|
protected boolean |
preserve
|
protected char |
replacement
|
Constructor Summary | |
---|---|
AbstractParserOptions()
|
Method Summary | |
---|---|
protected abstract void |
checkFactory(Factory factory)
|
java.lang.Object |
clone()
|
boolean |
getAutodetectCharset()
Returns true if the parser should attempt to automatically detect the character encoding from the stream |
java.lang.String |
getCharset()
Returns the default character set to use for the parsed document |
CompressionUtil.CompressionCodec[] |
getCompressionCodecs()
When parsing an InputStream that contains compressed data, use these codecs to decompress the stream. |
Factory |
getFactory()
Returns the factory the parser should use |
char |
getFilterRestrictedCharacterReplacement()
If getFilterRestrictedCharacters is true, restricted characters will be replaced with the specified character |
boolean |
getFilterRestrictedCharacters()
If true, the parser will attempt to silently filter out invalid XML characters appearing within the XML document. |
boolean |
getMustPreserveWhitespace()
If false, the parser will trim leading and trailing whitespace in element and attribute values unless there is an in-scope xml:space="preserve". |
ParseFilter |
getParseFilter()
Returns the Parse Filter. |
protected abstract void |
initFactory()
|
void |
setAutodetectCharset(boolean detect)
If true, the parser will attempt to automatically detect the character encoding from the stream by checking for the byte order mark or checking the XML prolog. |
void |
setCharset(java.lang.String charset)
Sets the character set to use for the parsed document |
void |
setCompressionCodecs(CompressionUtil.CompressionCodec... codecs)
When parsing an InputStream that contains compressed data, use these codecs to decompress the stream. |
void |
setFactory(Factory factory)
Sets the factory the parser should use |
void |
setFilterRestrictedCharacterReplacement(char replacement)
If getFilterRestrictedCharacters is true, restricted characters will be replaced with the specified character |
void |
setFilterRestrictedCharacters(boolean filter)
If true, the parser will attempt to silently filter out invalid XML characters appearing within the XML document |
void |
setMustPreserveWhitespace(boolean preserve)
If false, the parser will trim leading and trailing whitespace in element and attribute values unless there is an in-scope xml:space="preserve". |
void |
setParseFilter(ParseFilter parseFilter)
Sets the Parse Filter. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Factory factory
protected java.lang.String charset
protected ParseFilter parseFilter
protected boolean detect
protected boolean preserve
protected boolean filterreserved
protected char replacement
protected CompressionUtil.CompressionCodec[] codecs
Constructor Detail |
---|
public AbstractParserOptions()
Method Detail |
---|
protected abstract void initFactory()
protected abstract void checkFactory(Factory factory)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface ParserOptions
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public Factory getFactory()
ParserOptions
getFactory
in interface ParserOptions
public void setFactory(Factory factory)
ParserOptions
setFactory
in interface ParserOptions
public java.lang.String getCharset()
ParserOptions
getCharset
in interface ParserOptions
public void setCharset(java.lang.String charset)
ParserOptions
setCharset
in interface ParserOptions
public ParseFilter getParseFilter()
ParserOptions
getParseFilter
in interface ParserOptions
public void setParseFilter(ParseFilter parseFilter)
ParserOptions
setParseFilter
in interface ParserOptions
public boolean getAutodetectCharset()
ParserOptions
getAutodetectCharset
in interface ParserOptions
public void setAutodetectCharset(boolean detect)
ParserOptions
setAutodetectCharset
in interface ParserOptions
public boolean getMustPreserveWhitespace()
ParserOptions
getMustPreserveWhitespace
in interface ParserOptions
public void setMustPreserveWhitespace(boolean preserve)
ParserOptions
setMustPreserveWhitespace
in interface ParserOptions
public boolean getFilterRestrictedCharacters()
ParserOptions
getFilterRestrictedCharacters
in interface ParserOptions
public void setFilterRestrictedCharacters(boolean filter)
ParserOptions
setFilterRestrictedCharacters
in interface ParserOptions
public char getFilterRestrictedCharacterReplacement()
ParserOptions
getFilterRestrictedCharacterReplacement
in interface ParserOptions
public void setFilterRestrictedCharacterReplacement(char replacement)
ParserOptions
setFilterRestrictedCharacterReplacement
in interface ParserOptions
public CompressionUtil.CompressionCodec[] getCompressionCodecs()
ParserOptions
getCompressionCodecs
in interface ParserOptions
public void setCompressionCodecs(CompressionUtil.CompressionCodec... codecs)
ParserOptions
setCompressionCodecs
in interface ParserOptions
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |