jason.client
Class SignatureAppender

java.lang.Object
  |
  +--jason.client.Appender
        |
        +--jason.client.SignatureAppender

public class SignatureAppender
extends Appender


Field Summary
protected  MySignature signature
           
 
Fields inherited from class jason.client.Appender
buffer, storeLengths
 
Constructor Summary
SignatureAppender(MySignature signature)
           
SignatureAppender(MySignature signature, boolean storeLengths)
           
 
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 jason.client.Appender
append, append, append, append, append, append, appendIntern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

signature

protected MySignature signature
Constructor Detail

SignatureAppender

public SignatureAppender(MySignature signature)

SignatureAppender

public SignatureAppender(MySignature signature,
                         boolean storeLengths)
Method Detail

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 buffer
offset - 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.