|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.drl.rtstps.core.fs.Buffer
final class Buffer
This class holds a byte array with a currency indicator that marks a bit and byte location within the buffer.
Field Summary | |
---|---|
(package private) byte[] |
data
|
private int |
dataLength
|
(package private) Location |
index
|
private int |
remainingBytes
|
Constructor Summary | |
---|---|
Buffer()
Create an empty Buffer. |
|
Buffer(int length)
Create a buffer of the specified length. |
Method Summary | |
---|---|
(package private) void |
advance(int bytes)
Advance the current location. |
(package private) int |
append(Buffer buffer)
Append another buffer to this one. |
(package private) void |
empty()
Clear the buffer. |
(package private) int |
getLength()
Get the buffer length. |
(package private) int |
getRemainingBytes()
Get the number of bytes that are remaining. |
void |
setData(byte[] data,
int length)
Change the buffer's array and length. |
(package private) void |
setLocation(int byteOffset)
Set the current buffer location to the byte offset. |
(package private) void |
setLocation(Location loc)
Set the buffer's current location. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
byte[] data
Location index
private int dataLength
private int remainingBytes
Constructor Detail |
---|
Buffer()
Buffer(int length)
Method Detail |
---|
public void setData(byte[] data, int length)
final int getLength()
final int getRemainingBytes()
final void empty()
int append(Buffer buffer)
final void advance(int bytes)
final void setLocation(Location loc)
loc
- A new location. loc is not saved; its contents are copied.final void setLocation(int byteOffset)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |