Rice Pastry API

rice.p2p.splitstream
Class SplitStreamContent

java.lang.Object
  extended byrice.p2p.splitstream.SplitStreamContent
All Implemented Interfaces:
RawScribeContent, ScribeContent, java.io.Serializable

public class SplitStreamContent
extends java.lang.Object
implements RawScribeContent

This represents data sent through scribe for splitstream

Version:
$Id: SplitStreamContent.java 3274 2006-05-15 16:17:47Z jeffh $
Author:
Alan Mislove
See Also:
Serialized Form

Field Summary
protected  byte[] data
          The internal data - just the bytes
static short TYPE
          DESCRIBE THE FIELD
 
Constructor Summary
SplitStreamContent(byte[] data)
          Constructor taking in a byte[]
SplitStreamContent(InputBuffer buf)
          Constructor for SplitStreamContent.
 
Method Summary
 byte[] getData()
          Returns the data for this content
 short getType()
          Raw Serialization **************************************
 void serialize(OutputBuffer buf)
          DESCRIBE THE METHOD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected byte[] data
The internal data - just the bytes


TYPE

public static final short TYPE
DESCRIBE THE FIELD

See Also:
Constant Field Values
Constructor Detail

SplitStreamContent

public SplitStreamContent(byte[] data)
Constructor taking in a byte[]

Parameters:
data - The data for this content

SplitStreamContent

public SplitStreamContent(InputBuffer buf)
                   throws java.io.IOException
Constructor for SplitStreamContent.

Parameters:
buf - DESCRIBE THE PARAMETER
Throws:
java.io.IOException - DESCRIBE THE EXCEPTION
Method Detail

getData

public byte[] getData()
Returns the data for this content

Returns:
The data for this content

getType

public short getType()
Raw Serialization **************************************

Specified by:
getType in interface RawScribeContent
Returns:
The Type value

serialize

public void serialize(OutputBuffer buf)
               throws java.io.IOException
DESCRIBE THE METHOD

Specified by:
serialize in interface RawScribeContent
Parameters:
buf - DESCRIBE THE PARAMETER
Throws:
java.io.IOException - DESCRIBE THE EXCEPTION

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection