001package com.plivo.api.xml;
002
003import java.io.IOException;
004import java.io.Writer;
005
006import com.sun.xml.internal.bind.marshaller.CharacterEscapeHandler;
007
008public class JaxbCharacterEscapeHandler implements CharacterEscapeHandler {
009
010  public void escape(char[] buf, int start, int len, boolean isAttValue,
011                     Writer out) throws IOException {
012
013    for (int i = start; i < start + len; i++) {
014      char ch = buf[i];
015      out.write(ch);
016    }
017  }
018}