Packages

 

com.aspose.cad

Class CifReplacingEncoderFallback

  • java.lang.Object
    • com.aspose.ms.System.Text.EncoderFallback
      • com.aspose.cad.CifReplacingEncoderFallback


  • public class CifReplacingEncoderFallback
    extends com.aspose.ms.System.Text.EncoderFallback

    Encoder fallback that replaces out of codepage characters with CIF sequence

    • Constructor Detail

      • CifReplacingEncoderFallback

        public CifReplacingEncoderFallback()
    • Method Detail

      • getMaxCharCount

        public int getMaxCharCount()

        For surrogate pair of two UTF-16 characters that are encoded as two consequent CIF entries in AutoCad format (slash-escaped) it is 14, so we return 14

        Specified by:
        getMaxCharCount in class com.aspose.ms.System.Text.EncoderFallback
      • createFallbackBuffer

        public com.aspose.ms.System.Text.EncoderFallbackBuffer createFallbackBuffer()

        Creates the actual fallback buffer

        Specified by:
        createFallbackBuffer in class com.aspose.ms.System.Text.EncoderFallback
        Returns:
        Fallback buffer