|
'STRAP:multiple sequence alignments ' | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object charite.christo.ByteArray
public final class ByteArray
Similar to java.lang.StringBuffer but more efficient. Consumes only 8 bit and does not throw OutOfMemory as aften as StringBuffer. Contains an 8bit byte array to store text. Line ends are returned as an array of text positions.
Field Summary | |
---|---|
static Object |
CLEAR
|
static long |
STRING_POOL
|
static long |
STRING_TRIM
|
Fields inherited from interface charite.christo.interfaces.ChRunnable |
---|
APPEND, DOWNLOAD_FINISHED, INTERPRET_LINE, LOG, SET_ICON_IMAGE |
Constructor Summary | |
---|---|
ByteArray(byte[] bb)
|
|
ByteArray(byte[] bb,
int from,
int to)
|
|
ByteArray(CharSequence cs)
|
|
ByteArray(int l)
|
Method Summary | |
---|---|
ByteArray |
append(char ch)
|
ByteArray |
append(char ch,
int times)
|
ByteArray |
append(double f)
|
ByteArray |
append(double number,
int wInt,
int wFrac)
|
ByteArray |
append(int num)
|
ByteArray |
append(int num,
int width)
|
ByteArray |
append(Object s)
|
ByteArray |
append(Object o,
int from,
int to)
|
ByteArray |
appendln(Object s)
|
ByteArray |
appendSomeBytes(long n,
int num)
|
char |
charAt(int i)
|
int |
compareTo(Object anotherString)
|
ByteArray |
delBlanksL()
|
ByteArray |
delBlanksR()
|
ByteArray |
delSuffix(String s)
|
ByteArray |
enlargeCapacityBy(int reserve)
|
boolean |
equals(Object o)
|
ByteArray |
filter(int type,
Object o,
int from,
int to,
char toUpper)
|
ByteArray |
foldText(byte[] bb,
int from,
int to,
int lettersPerLine)
|
int |
getBegin()
First text position +1 |
byte[] |
getBytes()
The byte array used internally to store the text; |
int |
getEnd()
Last text position +1 |
int[] |
getLineEnds()
Indices of the '\n'. |
int |
getModificationCount()
|
int |
hashCode()
|
int |
idxToRow(int position)
|
void |
insidePreTags()
Counts the '\n'. |
int |
length()
|
byte[] |
newByteArray(int b,
int e)
returns the text between getBegin() and getEnd() |
String |
newString()
|
String |
newString(int from,
int to)
|
ByteArray |
onlyLetters(byte[] bb,
int from,
int to)
|
boolean |
onlyWhiteSpace()
|
ByteArray |
removeLeadingSpace()
|
ByteArray |
replace(char c,
char replacement)
|
ByteArray |
replace(char needle,
char replacement,
int from,
int to)
|
boolean |
replace(int from,
int to,
Object oReplacement)
|
ByteArray |
replace(Object needle,
Object replacement)
|
ByteArray |
replace(Object oNeedle,
Object replacement,
int from,
int to)
|
Object |
run(String id,
Object arg)
|
ByteArray |
set(byte[] bb,
int b,
int e)
|
ByteArray |
setBegin(int index)
|
ByteArray |
setEnd(int index)
|
void |
setLowercaseForcharAt(boolean b)
|
void |
setTextSegment(Segment s)
|
CharSequence |
subSequence(int start,
int end)
|
String[] |
toLineStrings(int options0)
Creates a String array[] One String for each line; |
String |
toString()
|
String |
toString(int from,
int to,
long options)
|
static byte[] |
trimSize(ByteArray ba)
Optimizes the size of the byte array, if (getEnd()-getBegin()) is less than getBytes().length then the size of the byte array. |
ByteArray |
urlEncode(Object text)
|
ByteArray |
urlEncode(Object text,
int from,
int to)
|
void |
write(OutputStream os)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Object CLEAR
public static final long STRING_POOL
public static final long STRING_TRIM
Constructor Detail |
---|
public ByteArray(CharSequence cs)
public ByteArray(byte[] bb)
public ByteArray(byte[] bb, int from, int to)
public ByteArray(int l)
Method Detail |
---|
public int getBegin()
public int getEnd()
public byte[] getBytes()
public ByteArray setBegin(int index)
public ByteArray setEnd(int index)
public ByteArray set(byte[] bb, int b, int e)
public int[] getLineEnds()
public void insidePreTags()
public ByteArray delBlanksL()
public ByteArray delBlanksR()
public static byte[] trimSize(ByteArray ba)
public byte[] newByteArray(int b, int e)
public String newString()
public String newString(int from, int to)
public String toString(int from, int to, long options)
public String[] toLineStrings(int options0)
public int idxToRow(int position)
public int getModificationCount()
public void setTextSegment(Segment s)
public boolean onlyWhiteSpace()
public ByteArray enlargeCapacityBy(int reserve)
public final ByteArray append(int num)
public final ByteArray append(char ch)
public final ByteArray append(char ch, int times)
public ByteArray appendSomeBytes(long n, int num)
public final ByteArray append(double f)
public final ByteArray appendln(Object s)
public final ByteArray append(Object s)
public final ByteArray append(Object o, int from, int to)
public ByteArray filter(int type, Object o, int from, int to, char toUpper)
public ByteArray append(int num, int width)
public ByteArray append(double number, int wInt, int wFrac)
public ByteArray replace(char c, char replacement)
public ByteArray foldText(byte[] bb, int from, int to, int lettersPerLine)
public ByteArray onlyLetters(byte[] bb, int from, int to)
public ByteArray urlEncode(Object text)
public ByteArray urlEncode(Object text, int from, int to)
public ByteArray delSuffix(String s)
public void write(OutputStream os) throws IOException
IOException
public String toString()
toString
in interface CharSequence
toString
in class Object
public void setLowercaseForcharAt(boolean b)
public char charAt(int i)
charAt
in interface CharSequence
public int length()
length
in interface CharSequence
public CharSequence subSequence(int start, int end)
subSequence
in interface CharSequence
public boolean replace(int from, int to, Object oReplacement)
public ByteArray replace(char needle, char replacement, int from, int to)
public ByteArray replace(Object needle, Object replacement)
public ByteArray replace(Object oNeedle, Object replacement, int from, int to)
public boolean equals(Object o)
equals
in class Object
public int compareTo(Object anotherString)
compareTo
in interface Comparable
public int hashCode()
hashCode
in class Object
public ByteArray removeLeadingSpace()
public Object run(String id, Object arg)
run
in interface ChRunnable
|
'STRAP:multiple sequence alignments ' | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |