CifReplacingEncoderFallbackBuffer

Inheritance: java.lang.Object, com.aspose.ms.System.Text.EncoderFallbackBuffer

The replacing encoder fallback buffer that actually does the replacement work

Constructors

ConstructorDescription
CifReplacingEncoderFallbackBuffer()

Methods

MethodDescription
getRemaining()Count of remaining characters in replacement buffer
fallback(char charUnknown, int index)Called when a single-char character out of output codepage is encountered
fallback(char charUnknownHigh, char charUnknownLow, int index)Called when a surrogate pair of characters out of output codepage is encountered
getNextChar()Gets next replacement char
movePrevious()Rewinds position in the replacement buffer by one

CifReplacingEncoderFallbackBuffer()

public CifReplacingEncoderFallbackBuffer()

getRemaining()

public int getRemaining()

Count of remaining characters in replacement buffer

Returns: int

fallback(char charUnknown, int index)

public boolean fallback(char charUnknown, int index)

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

Parameters:

ParameterTypeDescription
charUnknowncharOut of codepage character
indexintIndex of character in the input string

Returns: boolean - True if we do replace, false if not

fallback(char charUnknownHigh, char charUnknownLow, int index)

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

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

Parameters:

ParameterTypeDescription
charUnknownHighcharOut of codepage character - high surrogate
charUnknownLowcharOut of codepage character - low surrogate
indexintIndex of character in the input string

Returns: boolean - True if we do replace, false if not

getNextChar()

public char getNextChar()

Gets next replacement char

Returns: char - Replacement char

movePrevious()

public boolean movePrevious()

Rewinds position in the replacement buffer by one

Returns: boolean - True if successful, false if cannot rewind