Class CsvEscapeUtil


  • final class CsvEscapeUtil
    extends java.lang.Object

    Internal class in charge of performing the real escape/unescape operations.

    Since:
    1.0.0
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CsvEscapeUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static void escape​(char[] text, int offset, int len, java.io.Writer writer)  
      (package private) static void escape​(java.io.Reader reader, java.io.Writer writer)  
      (package private) static java.lang.String escape​(java.lang.String text)  
      (package private) static void unescape​(char[] text, int offset, int len, java.io.Writer writer)  
      (package private) static void unescape​(java.io.Reader reader, java.io.Writer writer)  
      (package private) static java.lang.String unescape​(java.lang.String text)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • TWO_DOUBLE_QUOTES

        private static final char[] TWO_DOUBLE_QUOTES
    • Constructor Detail

      • CsvEscapeUtil

        private CsvEscapeUtil()
    • Method Detail

      • escape

        static java.lang.String escape​(java.lang.String text)
      • escape

        static void escape​(java.io.Reader reader,
                           java.io.Writer writer)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • escape

        static void escape​(char[] text,
                           int offset,
                           int len,
                           java.io.Writer writer)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • unescape

        static java.lang.String unescape​(java.lang.String text)
      • unescape

        static void unescape​(java.io.Reader reader,
                             java.io.Writer writer)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • unescape

        static void unescape​(char[] text,
                             int offset,
                             int len,
                             java.io.Writer writer)
                      throws java.io.IOException
        Throws:
        java.io.IOException