Package | Description |
---|---|
org.xnio |
The main API package for XNIO.
|
Modifier and Type | Method and Description |
---|---|
static ByteString |
ByteString.copyOf(byte[] b,
int offs,
int len)
Create a byte string from the given array segment.
|
static ByteString |
ByteString.getBytes(ByteBuffer buffer)
Get a byte string from all remaining bytes of a ByteBuffer.
|
static ByteString |
ByteString.getBytes(ByteBuffer buffer,
int length)
Get a byte string from a ByteBuffer.
|
static ByteString |
ByteString.getBytes(String str,
Charset charset)
Get a byte string from the bytes of a character string.
|
static ByteString |
ByteString.getBytes(String str,
String charset)
Get a byte string from the bytes of a character string.
|
static ByteString |
ByteString.of(byte... bytes)
Create a byte string of the given literal bytes.
|
ByteString |
ByteString.substring(int offs)
Get the substring of this string starting at the given offset.
|
ByteString |
ByteString.substring(int offs,
int len)
Get the substring of this string starting at the given offset.
|
Modifier and Type | Method and Description |
---|---|
int |
ByteString.compareTo(ByteString o)
Compare this ByteString to another.
|
boolean |
ByteString.equals(ByteString other)
Determine if this ByteString equals another ByteString.
|
Copyright © 2018 JBoss by Red Hat. All rights reserved.