Class StringCodecQuote

java.lang.Object
org.aksw.commons.codec.string.impl.StringCodecQuote
All Implemented Interfaces:
EntityCodec<String>, EntityCodecDirect<String>, EntityCodecDirectBase<String>, EntityCodecIndirect<String>, StringCodec, StringCodecDirectBase

public class StringCodecQuote extends Object implements StringCodecDirectBase
StringCodec that prepends and appends a quote char to a given string and also escapes any occurrence of the quote char within the string with an escape char.
Author:
raven
  • Field Details

    • quoteChar

      protected final char quoteChar
    • escapeChar

      protected final char escapeChar
  • Constructor Details

    • StringCodecQuote

      public StringCodecQuote(char quoteChar, char escapeChar)
  • Method Details