public final class ByteChars extends ByteArrayRef implements CharSequence, Comparable<ByteChars>
ArrayRef.Allocator<T>
Constructor and Description |
---|
ByteChars() |
ByteChars(byte[] src) |
ByteChars(byte[] src,
boolean copy) |
ByteChars(byte[] src,
int off,
int len,
boolean copy) |
ByteChars(ByteArrayRef src,
boolean copy) |
ByteChars(CharSequence src) |
ByteChars(CharSequence src,
int off,
int len) |
ByteChars(int cap) |
Modifier and Type | Method and Description |
---|---|
ByteChars |
append(byte[] src) |
ByteChars |
append(byte[] barr,
int off,
int len) |
ByteChars |
append(char[] src) |
ByteChars |
append(char[] carr,
int off,
int len) |
ByteChars |
append(CharSequence str) |
ByteChars |
append(CharSequence cs,
int csoff,
int cslen) |
ByteChars |
append(int bval) |
ByteChars |
append(long numval,
StringBuilder strbuf) |
char |
charAt(int idx) |
ByteChars |
clear() |
int |
compareTo(ByteChars bc2) |
static ByteChars |
convertCharSequence(CharSequence src,
ByteChars buf) |
ByteChars |
digest(MessageDigest digestproc) |
boolean |
endsWith(CharSequence cs) |
boolean |
endsWith(CharSequence cs,
int csoff,
int cslen) |
boolean |
equalsChars(char[] arr) |
boolean |
equalsChars(char[] carr,
int coff,
int clen) |
boolean |
equalsIgnoreCase(CharSequence str) |
ByteChars |
extractTerm(byte dlm,
int off,
int target,
boolean to_end,
ByteChars ptr)
Breaks up the current buffer into a sequence of terms, and returns the specified term.
|
int |
indexOf(byte[] seq) |
int |
indexOf(CharSequence cs) |
int |
indexOf(int val) |
int |
indexOf(int off,
byte[] seq,
int soff,
int slen) |
int |
indexOf(int bcoff,
CharSequence cs) |
int |
indexOf(int bcoff,
CharSequence cs,
int csoff,
int cslen) |
int |
indexOf(int off,
int val) |
int |
lastIndexOf(int val) |
int |
lastIndexOf(int off,
int val) |
int |
length() |
long |
parseDecimal() |
long |
parseDecimal(int off,
int len) |
long |
parseHexadecimal() |
long |
parseHexadecimal(int off,
int len) |
static ArrayList<ByteChars> |
parseTerms(byte[] barr,
int off,
int len,
byte dlm,
ArrayList<ByteChars> terms,
ObjectWell<ByteChars> store) |
static ArrayList<ByteChars> |
parseTerms(CharSequence str,
int off,
int len,
byte dlm,
ArrayList<ByteChars> terms,
ObjectWell<ByteChars> store,
ByteChars bctmp) |
ByteChars |
populate(byte[] src) |
ByteChars |
populate(byte[] src,
int off,
int len) |
ByteChars |
populate(CharSequence src) |
ByteChars |
populate(CharSequence src,
int off,
int len) |
ByteChars |
populateBytes(ByteArrayRef src) |
ByteChars |
set(byte[] src) |
ByteChars |
set(byte[] src,
int off,
int len) |
ByteChars |
set(ByteArrayRef src) |
ByteChars |
set(ByteArrayRef src,
int off) |
ByteChars |
set(ByteArrayRef src,
int off,
int len) |
boolean |
startsWith(CharSequence cs) |
boolean |
startsWith(CharSequence cs,
int csoff,
int cslen) |
CharSequence |
subSequence(int start,
int end) |
char[] |
toCharArray() |
char[] |
toCharArray(int off,
int len,
char[] chbuf) |
ByteChars |
toLowerCase() |
String |
toString() |
String |
toString(int off,
int len) |
ByteChars |
toUpperCase() |
allocBuffer, arraySize, byteAt, canEqual, count, count, count, count, equals, equalsBytes, equalsBytes, hashCode, setByte, totalBufferSize
advance, buffer, capacity, copy, copyIn, copyIn, copyOut, copyOut, ensureCapacity, ensureSpareCapacity, getBuffer, getOffset, getOffset, getSize, incrementSize, limit, offset, offset, set, set, set, setSize, size, spareCapacity, toArray, toArray, toArray, toArray, totalBufferSize
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
chars, codePoints
public ByteChars()
public ByteChars(int cap)
public ByteChars(byte[] src)
public ByteChars(byte[] src, boolean copy)
public ByteChars(byte[] src, int off, int len, boolean copy)
public ByteChars(CharSequence src)
public ByteChars(ByteArrayRef src, boolean copy)
public ByteChars(CharSequence src, int off, int len)
public ByteChars populate(byte[] src)
public ByteChars populate(byte[] src, int off, int len)
public ByteChars populate(CharSequence src)
public ByteChars populate(CharSequence src, int off, int len)
public ByteChars populateBytes(ByteArrayRef src)
public ByteChars append(byte[] src)
public ByteChars append(char[] src)
public ByteChars set(ByteArrayRef src)
public ByteChars set(ByteArrayRef src, int off)
public ByteChars set(ByteArrayRef src, int off, int len)
public int indexOf(CharSequence cs)
public int indexOf(int bcoff, CharSequence cs)
public int indexOf(int val)
public int indexOf(byte[] seq)
public int lastIndexOf(int val)
public boolean startsWith(CharSequence cs)
public boolean endsWith(CharSequence cs)
public boolean equalsChars(char[] arr)
public char[] toCharArray()
public long parseDecimal()
public long parseDecimal(int off, int len)
public long parseHexadecimal()
public long parseHexadecimal(int off, int len)
public int length()
length
in interface CharSequence
public char charAt(int idx)
charAt
in interface CharSequence
public ByteChars append(byte[] barr, int off, int len)
public ByteChars append(char[] carr, int off, int len)
public ByteChars append(int bval)
public ByteChars append(long numval, StringBuilder strbuf)
public ByteChars append(CharSequence str)
public ByteChars append(CharSequence cs, int csoff, int cslen)
public int indexOf(int off, int val)
public int indexOf(int off, byte[] seq, int soff, int slen)
public int lastIndexOf(int off, int val)
public int indexOf(int bcoff, CharSequence cs, int csoff, int cslen)
public boolean startsWith(CharSequence cs, int csoff, int cslen)
public boolean endsWith(CharSequence cs, int csoff, int cslen)
public boolean equalsChars(char[] carr, int coff, int clen)
public boolean equalsIgnoreCase(CharSequence str)
public int compareTo(ByteChars bc2)
compareTo
in interface Comparable<ByteChars>
public String toString()
toString
in interface CharSequence
toString
in class ArrayRef<byte[]>
public String toString(int off, int len)
public CharSequence subSequence(int start, int end)
subSequence
in interface CharSequence
public char[] toCharArray(int off, int len, char[] chbuf)
public ByteChars toLowerCase()
public ByteChars toUpperCase()
public ByteChars extractTerm(byte dlm, int off, int target, boolean to_end, ByteChars ptr)
dlm
- Delimits the terms, where the first term has id=0, the second id=1, etcoff
- Start processing buffer at this offset - positions 0 to off-1 are ignored.target
- Specifies which term to return, where the first term is 0, the second is 1, etcto_end
- If True, the rest of this buffer from the specified term onwards is returned, unbroken by 'dlm'ptr
- If null, this method allocates a new lightweight ByteChars to use as the return value, but if an existing ByteChars
object is passed in here, it is used to point at the returned term, without having to allocate a new Object.public ByteChars digest(MessageDigest digestproc)
public static ByteChars convertCharSequence(CharSequence src, ByteChars buf)
public static ArrayList<ByteChars> parseTerms(byte[] barr, int off, int len, byte dlm, ArrayList<ByteChars> terms, ObjectWell<ByteChars> store)
public static ArrayList<ByteChars> parseTerms(CharSequence str, int off, int len, byte dlm, ArrayList<ByteChars> terms, ObjectWell<ByteChars> store, ByteChars bctmp)
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.