public class Utf8Array extends AbstractUtf8Array
Modifier and Type | Field and Description |
---|---|
protected byte[] |
utf8 |
Constructor and Description |
---|
Utf8Array(byte[] utf8data)
This will simply wrap the given array assuming it is valid utf8.
|
Utf8Array(byte[] utf8data,
int offset,
int length)
This will create a new array from the window given.
|
Utf8Array(ByteBuffer buf,
int length)
This will fetch length bytes from the given buffer.
|
Modifier and Type | Method and Description |
---|---|
int |
getByteLength() |
protected int |
getByteOffset() |
byte[] |
getBytes() |
ascii7BitLowerCase, compareTo, equals, getByte, hashCode, isEmpty, toString, wrap, writeTo
public Utf8Array(byte[] utf8data)
utf8data
- The utf8 byte sequence.public Utf8Array(byte[] utf8data, int offset, int length)
utf8data
- The base array.offset
- The offset from where to copy fromlength
- The number of bytes that should be copied.public Utf8Array(ByteBuffer buf, int length)
buf
- The ByteBuffer to read fromlength
- number of bytes to readpublic byte[] getBytes()
getBytes
in class AbstractUtf8Array
public int getByteLength()
getByteLength
in class AbstractUtf8Array
protected int getByteOffset()
getByteOffset
in class AbstractUtf8Array
Copyright © 2017. All rights reserved.