jason.client
Class SignatureAppender
java.lang.Object
|
+--jason.client.Appender
|
+--jason.client.SignatureAppender
- public class SignatureAppender
- extends Appender
Method Summary |
protected void |
appendIntern(byte[] b,
int offset,
int length)
Build a bigger array containing the old array and the specified part of the
given array. |
byte[] |
getBuffer()
Gets the internal buffer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
signature
protected MySignature signature
SignatureAppender
public SignatureAppender(MySignature signature)
SignatureAppender
public SignatureAppender(MySignature signature,
boolean storeLengths)
appendIntern
protected void appendIntern(byte[] b,
int offset,
int length)
- Description copied from class:
Appender
- Build a bigger array containing the old array and the specified part of the
given array. Subklasses of
Appender
only have to modify this method.
- Overrides:
appendIntern
in class Appender
- Parameters:
b
- The data to add to the internal bufferoffset
- Offset within b
length
- Length of bytes to copy
getBuffer
public byte[] getBuffer()
- Description copied from class:
Appender
- Gets the internal buffer. Note that it is the buffer itself and not a copy.
- Overrides:
getBuffer
in class Appender
- Returns:
- The internal buffer.