RingJavafor Ring

java.nio.charset

12 classes of the module java.base.

Load them with:

using {
	"java.nio.charset"
}

All packages

CharacterCodingException#

class · extends IOException · java.nio.charset.CharacterCodingException

Constructors

new CharacterCodingException()

Ring: new CharacterCodingException(args) uses the constructor with the fewest parameters (at least one); new CharacterCodingException makes the object with the constructor without parameters; the others: (new CharacterCodingException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of IOException are inherited.

Charset#

abstract · extends Object · java.nio.charset.Charset

Implements: Comparable

Methods

MethodRing callJava overloads
@displayName@displayName(locale)String displayName(Locale locale)
aliasesaliases()Set aliases()
availableCharsetsavailableCharsets()static SortedMap availableCharsets()
canEncodecanEncode()boolean canEncode()
compareTocompareTo(that)int compareTo(Charset that)
containscontains(cs)boolean contains(Charset cs)
decodedecode(bb)CharBuffer decode(ByteBuffer bb)
defaultCharsetdefaultCharset()static Charset defaultCharset()
displayNamedisplayName()String displayName()
encodeencode(cb)ByteBuffer encode(CharBuffer cb)
ByteBuffer encode(String str)
forNameforName(charsetName)
forName([charsetName,fallback])
forName([ :charsetName = v, :fallback = v ])
static Charset forName(String charsetName)
static Charset forName(String charsetName, Charset fallback)
isRegisteredisRegistered()boolean isRegistered()
isSupportedisSupported(charsetName)static boolean isSupported(String charsetName)
namename()String name()
newDecodernewDecoder()CharsetDecoder newDecoder()
newEncodernewEncoder()CharsetEncoder newEncoder()

The methods and fields of Object are inherited.

CharsetDecoder#

abstract · extends Object · java.nio.charset.CharsetDecoder

Methods

MethodRing callJava overloads
averageCharsPerByteaverageCharsPerByte()float averageCharsPerByte()
charsetcharset()Charset charset()
decodedecode(in)
decode([in,out,endOfInput])
decode([ :in = v, :out = v, :endOfInput = v ])
CharBuffer decode(ByteBuffer in)
CoderResult decode(ByteBuffer in, CharBuffer out, boolean endOfInput)
detectedCharsetdetectedCharset()Charset detectedCharset()
flushflush(out)CoderResult flush(CharBuffer out)
isAutoDetectingisAutoDetecting()boolean isAutoDetecting()
isCharsetDetectedisCharsetDetected()boolean isCharsetDetected()
malformedInputActionmalformedInputAction()CodingErrorAction malformedInputAction()
maxCharsPerBytemaxCharsPerByte()float maxCharsPerByte()
onMalformedInputonMalformedInput(newAction)CharsetDecoder onMalformedInput(CodingErrorAction newAction)
onUnmappableCharacteronUnmappableCharacter(newAction)CharsetDecoder onUnmappableCharacter(CodingErrorAction newAction)
replacementreplacement()String replacement()
replaceWithreplaceWith(newReplacement)CharsetDecoder replaceWith(String newReplacement)
resetreset()CharsetDecoder reset()
unmappableCharacterActionunmappableCharacterAction()CodingErrorAction unmappableCharacterAction()

The methods and fields of Object are inherited.

CharsetEncoder#

abstract · extends Object · java.nio.charset.CharsetEncoder

Methods

MethodRing callJava overloads
averageBytesPerCharaverageBytesPerChar()float averageBytesPerChar()
canEncodecanEncode(cs)boolean canEncode(CharSequence cs)
boolean canEncode(char c)
charsetcharset()Charset charset()
encodeencode(in)
encode([in,out,endOfInput])
encode([ :in = v, :out = v, :endOfInput = v ])
ByteBuffer encode(CharBuffer in)
CoderResult encode(CharBuffer in, ByteBuffer out, boolean endOfInput)
flushflush(out)CoderResult flush(ByteBuffer out)
isLegalReplacementisLegalReplacement(repl)boolean isLegalReplacement(byte[] repl)
malformedInputActionmalformedInputAction()CodingErrorAction malformedInputAction()
maxBytesPerCharmaxBytesPerChar()float maxBytesPerChar()
onMalformedInputonMalformedInput(newAction)CharsetEncoder onMalformedInput(CodingErrorAction newAction)
onUnmappableCharacteronUnmappableCharacter(newAction)CharsetEncoder onUnmappableCharacter(CodingErrorAction newAction)
replacementreplacement()byte[] replacement()
replaceWithreplaceWith(newReplacement)CharsetEncoder replaceWith(byte[] newReplacement)
resetreset()CharsetEncoder reset()
unmappableCharacterActionunmappableCharacterAction()CodingErrorAction unmappableCharacterAction()

The methods and fields of Object are inherited.

CoderMalfunctionError#

class · extends Error · java.nio.charset.CoderMalfunctionError

Constructors

new CoderMalfunctionError(Exception cause)

Ring: new CoderMalfunctionError(args) uses the constructor with the fewest parameters (at least one); new CoderMalfunctionError makes the object with the constructor without parameters; the others: (new CoderMalfunctionError).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of Error are inherited.

CoderResult#

class final · extends Object · java.nio.charset.CoderResult

Fields

NameTypeAccessIn Ring
UNDERFLOWCoderResultconstant · statico.UNDERFLOW
OVERFLOWCoderResultconstant · statico.OVERFLOW

Methods

MethodRing callJava overloads
isErrorisError()boolean isError()
isMalformedisMalformed()boolean isMalformed()
isOverflowisOverflow()boolean isOverflow()
isUnderflowisUnderflow()boolean isUnderflow()
isUnmappableisUnmappable()boolean isUnmappable()
lengthlength()int length()
malformedForLengthmalformedForLength(length)static CoderResult malformedForLength(int length)
throwExceptionthrowException()void throwException()
unmappableForLengthunmappableForLength(length)static CoderResult unmappableForLength(int length)

The methods and fields of Object are inherited.

CodingErrorAction#

class final · extends Object · java.nio.charset.CodingErrorAction

Fields

NameTypeAccessIn Ring
IGNORECodingErrorActionconstant · statico.IGNORE
REPLACECodingErrorActionconstant · statico.REPLACE
REPORTCodingErrorActionconstant · statico.REPORT

The methods and fields of Object are inherited.

IllegalCharsetNameException#

class · extends IllegalArgumentException · java.nio.charset.IllegalCharsetNameException

Constructors

new IllegalCharsetNameException(String charsetName)

Ring: new IllegalCharsetNameException(args) uses the constructor with the fewest parameters (at least one); new IllegalCharsetNameException makes the object with the constructor without parameters; the others: (new IllegalCharsetNameException).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getCharsetNamegetCharsetName()String getCharsetName()

The methods and fields of IllegalArgumentException are inherited.

MalformedInputException#

class · extends CharacterCodingException · java.nio.charset.MalformedInputException

Constructors

new MalformedInputException(int inputLength)

Ring: new MalformedInputException(args) uses the constructor with the fewest parameters (at least one); new MalformedInputException makes the object with the constructor without parameters; the others: (new MalformedInputException).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getInputLengthgetInputLength()int getInputLength()

The methods and fields of CharacterCodingException are inherited.

StandardCharsets#

class final · extends Object · java.nio.charset.StandardCharsets

Fields

NameTypeAccessIn Ring
US_ASCIICharsetconstant · statico.US_ASCII
ISO_8859_1Charsetconstant · statico.ISO_8859_1
UTF_8Charsetconstant · statico.UTF_8
UTF_16BECharsetconstant · statico.UTF_16BE
UTF_16LECharsetconstant · statico.UTF_16LE
UTF_16Charsetconstant · statico.UTF_16
UTF_32BECharsetconstant · statico.UTF_32BE
UTF_32LECharsetconstant · statico.UTF_32LE
UTF_32Charsetconstant · statico.UTF_32

The methods and fields of Object are inherited.

UnmappableCharacterException#

class · extends CharacterCodingException · java.nio.charset.UnmappableCharacterException

Constructors

new UnmappableCharacterException(int inputLength)

Ring: new UnmappableCharacterException(args) uses the constructor with the fewest parameters (at least one); new UnmappableCharacterException makes the object with the constructor without parameters; the others: (new UnmappableCharacterException).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getInputLengthgetInputLength()int getInputLength()

The methods and fields of CharacterCodingException are inherited.

UnsupportedCharsetException#

class · extends IllegalArgumentException · java.nio.charset.UnsupportedCharsetException

Constructors

new UnsupportedCharsetException(String charsetName)

Ring: new UnsupportedCharsetException(args) uses the constructor with the fewest parameters (at least one); new UnsupportedCharsetException makes the object with the constructor without parameters; the others: (new UnsupportedCharsetException).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getCharsetNamegetCharsetName()String getCharsetName()

The methods and fields of IllegalArgumentException are inherited.

RingJava - use Java classes and methods from Ring programs.