AndroidXMLEncoder extends net.sf.okapi.common.encoder.XMLEncoder { String escapeDoubleQuotes(String text) { return escapeCharacter(text, '"'); } AndroidXMLEncoder(boolean oldEscaping); @Override String encode(String text, EncoderContext context); String escapeAndroid(String text); String escapeAndroidOld(String text);  }
@Test public void testEscapeDoubleQuotes() { assertEquals("a\\\"b" , androidXMLEncoder.escapeDoubleQuotes("a\"b")); }