public abstract class

CharToByteISO2022

extends CharToByteConverter
java.lang.Object
   ↳ sun.io.CharToByteConverter
     ↳ sun.io.CharToByteISO2022
Known Direct Subclasses

Summary

Fields
protected String SODesignator
protected String SS2Designator
protected String SS3Designator
protected CharToByteConverter codeConverter
protected final byte maximumDesignatorLength
[Expand]
Inherited Fields
From class sun.io.CharToByteConverter
Public Constructors
CharToByteISO2022()
Public Methods
boolean canConvert(char ch)
Returns true if the given character can be converted to the target character encoding.
int convert(char[] input, int inOff, int inEnd, byte[] output, int outOff, int outEnd)
Character conversion
int flush(byte[] output, int outStart, int outEnd)
Writes any remaining output to the output buffer and resets the converter to its initial state.
void reset()
Resets converter to its initial state.
[Expand]
Inherited Methods
From class sun.io.CharToByteConverter
From class java.lang.Object

Fields

protected String SODesignator

protected String SS2Designator

protected String SS3Designator

protected CharToByteConverter codeConverter

protected final byte maximumDesignatorLength

Constant Value: 4 (0x00000004)

Public Constructors

public CharToByteISO2022 ()

Public Methods

public boolean canConvert (char ch)

Returns true if the given character can be converted to the target character encoding.

Parameters
ch character to test
Returns
  • true if given character is translatable, false otherwise.

public int convert (char[] input, int inOff, int inEnd, byte[] output, int outOff, int outEnd)

Character conversion

Parameters
input array containing Unicode characters to be converted.
inOff begin conversion at this offset in input array.
inEnd stop conversion at this offset in input array (exclusive).
output byte array to receive conversion result.
outOff start writing to output array at this offset.
outEnd stop writing to output array at this offset (exclusive).
Returns
  • the number of bytes written to output.

public int flush (byte[] output, int outStart, int outEnd)

Writes any remaining output to the output buffer and resets the converter to its initial state.

Parameters
output byte array to receive flushed output.
outStart start writing to output array at this offset.
outEnd stop writing to output array at this offset (exclusive).

public void reset ()

Resets converter to its initial state.