public class UnicodeBuffers extends Object
| Modifier and Type | Method and Description |
|---|---|
static Collection<org.apache.commons.io.ByteOrderMark> |
getAllKnownByteOrderMarks() |
static Collection<org.apache.commons.io.ByteOrderMark> |
getByteOrderMarksForCharset(Charset charset) |
static OptionalInt |
getFirstCodePoint(CharBuffer charBuffer)
Reads the first code point as defined in
Character in the charBuffer, if any. |
static void |
skipByteOrderMarks(ByteBuffer byteBuffer,
Iterable<org.apache.commons.io.ByteOrderMark> byteOrderMarks)
If the byteBuffer starts with one of the BOMs, set the buffers position behind it.
|
public static OptionalInt getFirstCodePoint(CharBuffer charBuffer)
Character in the charBuffer, if any.public static void skipByteOrderMarks(ByteBuffer byteBuffer, Iterable<org.apache.commons.io.ByteOrderMark> byteOrderMarks)
public static Collection<org.apache.commons.io.ByteOrderMark> getByteOrderMarksForCharset(Charset charset)
public static Collection<org.apache.commons.io.ByteOrderMark> getAllKnownByteOrderMarks()
Copyright © 2018. All rights reserved.