Top Description Fields Constructors Methods
io.netty5.handler.codec.http.websocketx

pack-priv final Class Utf8Validator

extends Object
implements ByteProcessor
Class Inheritance
All Implemented Interfaces
io.netty5.util.ByteProcessor
Imports
io.netty5.buffer.Buffer, .ByteCursor, io.netty5.util.ByteProcessor

Checks UTF8 bytes for validity

Field Summary

Modifier and TypeField and Description
private boolean
private int
private int
private static final byte[]
private static final byte[]
private static final int
private static final int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
check(Buffer buffer)

public void
public boolean
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

checkingback to summary
private boolean checking
codepback to summary
private int codep
stateback to summary
private int state
STATESback to summary
private static final byte[] STATES
TYPESback to summary
private static final byte[] TYPES
UTF8_ACCEPTback to summary
private static final int UTF8_ACCEPT
UTF8_REJECTback to summary
private static final int UTF8_REJECT

Constructor Detail

Utf8Validatorback to summary
pack-priv Utf8Validator()

Method Detail

checkback to summary
public void check(Buffer buffer)
finishback to summary
public void finish()
isCheckingback to summary
public boolean isChecking()
processback to summary
public boolean process(byte b)

Implements io.netty5.util.ByteProcessor.process.

Returns:boolean

Doc from io.netty5.util.ByteProcessor.process.

true if the processor wants to continue the loop and handle the next byte in the buffer. false if the processor wants to stop handling bytes and abort the loop.

Annotations
@Override