wtanaka.praya.gale
Class InMemoryDataFragment

java.lang.Object
  |
  +--wtanaka.praya.gale.AbstractFragment
        |
        +--wtanaka.praya.gale.InMemoryDataFragment
All Implemented Interfaces:
FragmentInterface

public class InMemoryDataFragment
extends AbstractFragment

Represents a data fragment.

Return to Sourceforge or the Praya Homepage

Version:
$Name: $ $Date: 2001/09/30 21:14:52 $
Author:
$Author: wtanaka $

Field Summary
private  byte[] m_value
           
 
Fields inherited from class wtanaka.praya.gale.AbstractFragment
m_fragmentName
 
Fields inherited from interface wtanaka.praya.gale.FragmentInterface
BODY, CLASS, ENCRYPTED, INSTANCE, KEY_MEMBER, KEY_REDIRECT, NWO_KEY, NWO_KEY_REQUEST, NWO_RECEIPT, NWO_RECEIPT_REQ, OWO_KEY, OWO_KEY_REQUEST, OWO_RECEIPT, OWO_RECEIPT_REQ, PRESENCE, SENDER, SIGNATURE, TIME
 
Constructor Summary
InMemoryDataFragment(java.lang.String fragmentName, byte[] dataValue)
          constructs a new data fragment with the given name and value
 
Method Summary
 byte[] getByteArray()
           
 int getStreamLength()
           
 FragmentType getType()
           
 java.lang.String toString()
           
 java.lang.String toString(int indentLevel)
           
 void write(GaleOutputStream out)
          Writes this data fragment to the output stream, locking it with synchronized (out).
 
Methods inherited from class wtanaka.praya.gale.AbstractFragment
getFragmentName
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

m_value

private byte[] m_value
Constructor Detail

InMemoryDataFragment

public InMemoryDataFragment(java.lang.String fragmentName,
                            byte[] dataValue)
constructs a new data fragment with the given name and value
Method Detail

getType

public FragmentType getType()

getStreamLength

public int getStreamLength()

write

public void write(GaleOutputStream out)
           throws java.io.IOException
Writes this data fragment to the output stream, locking it with synchronized (out).
Parameters:
out - the output stream on which to write this fragment.

getByteArray

public byte[] getByteArray()

toString

public java.lang.String toString(int indentLevel)
Overrides:
toString in class AbstractFragment

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object