int accumDefaultEntity ( java . io . Writer writer , char ch , int i , char [ ] chars , int len , boolean fromTextNode , boolean escLF ) throws IOException { if ( ! escLF && CharInfo . S_LINEFEED == ch ) { writer . write ( m_lineSep , 0 , m_lineSepLen ) ; } else { // if this is text node character and a special one of those, // or if this is a character from attribute value and a special one of those if ( ( fromTextNode && m_charInfo . shouldMapTextChar ( ch ) ) || ( ! fromTextNode && m_charInfo . shouldMapAttrChar ( ch ) ) ) { String outputStringForChar = m_charInfo . getOutputStringForChar ( ch ) ; if ( null != outputStringForChar ) { writer . write ( outputStringForChar ) ; } else return i ; } else return i ; } return i + 1 ; }
Handle one of the default entities return false if it is not a default entity .