|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParserOptions
Parser options are used to modify the behavior of the parser.
Method Summary | |
---|---|
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. |
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. |
Method Detail |
---|
java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
Factory getFactory()
void setFactory(Factory factory)
java.lang.String getCharset()
void setCharset(java.lang.String charset)
ParseFilter getParseFilter()
void setParseFilter(ParseFilter parseFilter)
boolean getAutodetectCharset()
void setAutodetectCharset(boolean detect)
boolean getMustPreserveWhitespace()
void setMustPreserveWhitespace(boolean preserve)
boolean getFilterRestrictedCharacters()
void setFilterRestrictedCharacters(boolean filter)
char getFilterRestrictedCharacterReplacement()
void setFilterRestrictedCharacterReplacement(char replacement)
CompressionUtil.CompressionCodec[] getCompressionCodecs()
void setCompressionCodecs(CompressionUtil.CompressionCodec... codecs)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |