|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.util.ByteString
ucar.unidata.util.ByteString.Concrete
public static class ByteString.Concrete
Class Concrete
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.util.ByteString |
|---|
ByteString.Concrete, ByteString.Empty, ByteString.SubString, ByteString.TrSubString |
| Field Summary | |
|---|---|
protected byte[] |
ba_
Storage for the data |
| Fields inherited from class ucar.unidata.util.ByteString |
|---|
nada |
| Constructor Summary | |
|---|---|
|
ByteString.Concrete(byte[] ba,
boolean share)
Constructs a new ByteString initialized to
contain the same sequence of bytes as the contained in
the byte array argument. |
protected |
ByteString.Concrete(ByteString.Concrete bs,
boolean share)
Copy constuctor. |
|
ByteString.Concrete(ByteString bs)
Copy constuctor. |
|
ByteString.Concrete(ByteString bs,
int length)
Copy constuctor which trims input to length. |
|
ByteString.Concrete(ByteString bs,
int origin,
int length)
Copy constuctor which trims input to [origin, origin + length). |
|
ByteString.Concrete(String str)
Construct a ByteString by narrowing a String. |
| Method Summary | |
|---|---|
byte |
byteAt(int ii)
_more_ |
byte[] |
copyBytes(int srcpos,
byte[] dst,
int dstpos,
int nbytes)
_more_ |
int |
getLength()
_more_ |
ByteString |
subByteString(int beginIndex,
int length)
_more_ |
ByteString |
substring(int beginIndex)
_more_ |
byte[] |
toArray()
_more_ |
| Methods inherited from class ucar.unidata.util.ByteString |
|---|
ByteToChar8859_1, charAt, CharToByte8859_1, compare, compare, compareTo, compareTo, compareTo, concat, concat, equals, equalS, format, hashCode, length, main, substring, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final byte[] ba_
| Constructor Detail |
|---|
public ByteString.Concrete(byte[] ba,
boolean share)
ByteString initialized to
contain the same sequence of bytes as the contained in
the byte array argument. If share is
true then the byte array argument is used
as backing storage. Caution: in this case, subsequent
modification of the byte array affects the newly created
ByteString. Otherwise, the contents of the byte array
are copied and subsequent modification of the byte array
does not affect the newly created ByteString.
ba - byte array which initializes contents of thisshare - boolean, if false, make a private copy of bapublic ByteString.Concrete(ByteString bs)
bs -
protected ByteString.Concrete(ByteString.Concrete bs,
boolean share)
bs - share -
public ByteString.Concrete(ByteString bs,
int length)
bs - length -
public ByteString.Concrete(ByteString bs,
int origin,
int length)
bs - origin - length - public ByteString.Concrete(String str)
str - | Method Detail |
|---|
public int getLength()
getLength in class ByteStringpublic byte byteAt(int ii)
byteAt in class ByteStringii -
public byte[] copyBytes(int srcpos,
byte[] dst,
int dstpos,
int nbytes)
copyBytes in class ByteStringsrcpos - dst - dstpos - nbytes -
public byte[] toArray()
toArray in class ByteString
public ByteString subByteString(int beginIndex,
int length)
subByteString in class ByteStringbeginIndex - length -
public ByteString substring(int beginIndex)
substring in class ByteStringbeginIndex -
String.substring(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||