Packages

 

com.aspose.cad

Class CifReplacingEncoderFallbackBuffer

  • java.lang.Object
    • com.aspose.ms.System.Text.EncoderFallbackBuffer
      • com.aspose.cad.CifReplacingEncoderFallbackBuffer


  • public class CifReplacingEncoderFallbackBuffer
    extends com.aspose.ms.System.Text.EncoderFallbackBuffer

    The replacing encoder fallback buffer that actually does the replacement work

    • Constructor Detail

      • CifReplacingEncoderFallbackBuffer

        public CifReplacingEncoderFallbackBuffer()
    • Method Detail

      • getRemaining

        public int getRemaining()

        Count of remaining characters in replacement buffer

        Specified by:
        getRemaining in class com.aspose.ms.System.Text.EncoderFallbackBuffer
      • fallback

        public boolean fallback(char charUnknown,
                                int index)

        Called when a single-char character out of output codepage is encountered

        Specified by:
        fallback in class com.aspose.ms.System.Text.EncoderFallbackBuffer
        Parameters:
        charUnknown - Out of codepage character
        index - Index of character in the input string
        Returns:
        True if we do replace, false if not
      • fallback

        public boolean fallback(char charUnknownHigh,
                                char charUnknownLow,
                                int index)

        Called when a surrogate pair of characters out of output codepage is encountered

        Specified by:
        fallback in class com.aspose.ms.System.Text.EncoderFallbackBuffer
        Parameters:
        charUnknownHigh - Out of codepage character - high surrogate
        charUnknownLow - Out of codepage character - low surrogate
        index - Index of character in the input string
        Returns:
        True if we do replace, false if not
      • getNextChar

        public char getNextChar()

        Gets next replacement char

        Specified by:
        getNextChar in class com.aspose.ms.System.Text.EncoderFallbackBuffer
        Returns:
        Replacement char
      • movePrevious

        public boolean movePrevious()

        Rewinds position in the replacement buffer by one

        Specified by:
        movePrevious in class com.aspose.ms.System.Text.EncoderFallbackBuffer
        Returns:
        True if successful, false if cannot rewind