Top Description Fields Constructors Methods
io.undertow.websockets.core

public final Class UTF8Output

extends Object
Class Inheritance
Imports
org.xnio.Buffers, java.nio.ByteBuffer

Utility class which allows to extract a UTF8 String from bytes respecting valid code-points

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
UTF8Output(ByteBuffer... payload)

public

Method Summary

Modifier and TypeMethod and Description
public String
extract()

Extract a String holding the utf8 text

public boolean
public void
write(ByteBuffer... bytes)

private void
write(byte b)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

codepback to summary
private int codep
HIGH_BITback to summary
private static final byte HIGH_BIT
stateback to summary
private byte state
Annotations
@SuppressWarnings:RedundantFieldInitialization
STATESback to summary
private static final byte[] STATES
stringBuilderback to summary
private final StringBuilder stringBuilder
TYPESback to summary
private static final byte[] TYPES
UTF8_ACCEPTback to summary
private static final int UTF8_ACCEPT

Constructor Detail

UTF8Outputback to summary
public UTF8Output(ByteBuffer... payload)
UTF8Outputback to summary
public UTF8Output()

Method Detail

extractback to summary
public String extract()

Extract a String holding the utf8 text

hasDataback to summary
public boolean hasData()
writeback to summary
public void write(ByteBuffer... bytes)
writeback to summary
private void write(byte b)