com.sentilla.host.client.network
Class SerializableByteBuffer

java.lang.Object
  extended by com.sentilla.host.client.network.SerializableByteBuffer
All Implemented Interfaces:
Serializable

public class SerializableByteBuffer
extends Object
implements Serializable

Author:
spence@sentilla.com
See Also:
Serialized Form

Field Summary
 byte[] data
           
 int end
           
private static long serialVersionUID
          Generated serial version ID.
 int start
           
 
Constructor Summary
SerializableByteBuffer()
           
SerializableByteBuffer(byte[] data, int start, int end)
           
SerializableByteBuffer(int maxlength)
           
 
Method Summary
 int available()
           
 void clear()
           
 int cmp(SerializableByteBuffer b)
           
 byte read()
           
 void skip(int n)
           
 void write(int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Generated serial version ID.

See Also:
Constant Field Values

start

public int start

end

public int end

data

public byte[] data
Constructor Detail

SerializableByteBuffer

public SerializableByteBuffer()

SerializableByteBuffer

public SerializableByteBuffer(int maxlength)

SerializableByteBuffer

public SerializableByteBuffer(byte[] data,
                              int start,
                              int end)
Method Detail

clear

public void clear()

read

public byte read()
          throws IORuntimeException
Throws:
IORuntimeException

available

public int available()

skip

public void skip(int n)
          throws IORuntimeException
Throws:
IORuntimeException

write

public void write(int b)
           throws IORuntimeException
Throws:
IORuntimeException

cmp

public int cmp(SerializableByteBuffer b)


Copyright © 2007 Sentilla, Inc. All Rights Reserved.