|
||||||||||
| 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
ucar.unidata.util.ByteString.TrSubString
public static class ByteString.TrSubString
A ByteString implementation which which is zero based in the underlying byte array but whose length is possibly less than the underlying byte array. "Truncated SubString of ByteString".
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.util.ByteString |
|---|
ByteString.Concrete, ByteString.Empty, ByteString.SubString, ByteString.TrSubString |
| Field Summary | |
|---|---|
protected int |
length_
_more_ |
| Fields inherited from class ucar.unidata.util.ByteString.Concrete |
|---|
ba_ |
| Fields inherited from class ucar.unidata.util.ByteString |
|---|
nada |
| Constructor Summary | |
|---|---|
ByteString.TrSubString(byte[] ba,
boolean share,
int length)
_more_ |
|
ByteString.TrSubString(ByteString.Concrete bs,
int length)
_more_ |
|
| Method Summary | |
|---|---|
byte |
byteAt(int ii)
_more_ |
byte[] |
copyBytes(int srcpos,
byte[] dst,
int dstpos,
int nbytes)
_more_ |
int |
getLength()
_more_ |
byte[] |
toArray()
_more_ |
| Methods inherited from class ucar.unidata.util.ByteString.Concrete |
|---|
subByteString, substring |
| 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 int length_
| Constructor Detail |
|---|
public ByteString.TrSubString(byte[] ba,
boolean share,
int length)
ba - share - length -
public ByteString.TrSubString(ByteString.Concrete bs,
int length)
bs - length - | Method Detail |
|---|
public int getLength()
getLength in class ByteString.Concretepublic byte byteAt(int ii)
byteAt in class ByteString.Concreteii -
public byte[] copyBytes(int srcpos,
byte[] dst,
int dstpos,
int nbytes)
copyBytes in class ByteString.Concretesrcpos - dst - dstpos - nbytes -
public byte[] toArray()
toArray in class ByteString.Concrete
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||