Interface XMLEncoder

All Known Implementing Classes:
AbstractXMLEncoder, DefaultXMLEncoder

public interface XMLEncoder
Interface for XMLEncoders
  • Method Summary

    Modifier and Type
    Method
    Description
    encode(String xmlString)
    encode a given string
    gets the encoding supported by this encoder
    void
    writeEncoded(Writer writer, String xmlString)
    write the encoded version of a given string
  • Method Details

    • getEncoding

      String getEncoding()
      gets the encoding supported by this encoder
      Returns:
      string
    • encode

      String encode(String xmlString)
      encode a given string
      Parameters:
      xmlString - string to be encoded
      Returns:
      encoded string
    • writeEncoded

      void writeEncoded(Writer writer, String xmlString) throws IOException
      write the encoded version of a given string
      Parameters:
      writer - writer to write this string to
      xmlString - string to be encoded
      Throws:
      IOException