Package ucar.unidata.util
Class ByteString.TrSubString
java.lang.Object
ucar.unidata.util.ByteString
ucar.unidata.util.ByteString.Concrete
ucar.unidata.util.ByteString.TrSubString
- All Implemented Interfaces:
Serializable
,Comparable
- Direct Known Subclasses:
ByteString.SubString
- Enclosing class:
ByteString
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".
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ucar.unidata.util.ByteString
ByteString.Concrete, ByteString.Empty, ByteString.SubString, ByteString.TrSubString
-
Field Summary
FieldsFields inherited from class ucar.unidata.util.ByteString.Concrete
ba_
Fields inherited from class ucar.unidata.util.ByteString
nada
-
Constructor Summary
ConstructorsConstructorDescriptionTrSubString
(byte[] ba, boolean share, int length) _more_TrSubString
(ByteString.Concrete bs, int length) _more_ -
Method Summary
Methods inherited from class ucar.unidata.util.ByteString.Concrete
subByteString, substring
-
Field Details
-
length_
protected final int length__more_
-
-
Constructor Details
-
TrSubString
public TrSubString(byte[] ba, boolean share, int length) _more_- Parameters:
ba
-share
-length
-
-
TrSubString
_more_- Parameters:
bs
-length
-
-
-
Method Details
-
getLength
public int getLength()_more_- Overrides:
getLength
in classByteString.Concrete
- Returns:
- _more_
-
byteAt
public byte byteAt(int ii) _more_- Overrides:
byteAt
in classByteString.Concrete
- Parameters:
ii
-- Returns:
- _more_
-
copyBytes
public byte[] copyBytes(int srcpos, byte[] dst, int dstpos, int nbytes) _more_- Overrides:
copyBytes
in classByteString.Concrete
- Parameters:
srcpos
-dst
-dstpos
-nbytes
-- Returns:
- _more_
-
toArray
public byte[] toArray()_more_- Overrides:
toArray
in classByteString.Concrete
- Returns:
- _more_
-