|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.transport.util.StreamBuffer
public class StreamBuffer
The buffers containing the data stream chunks for a RemoteInputStream
.
Constructor Summary | |
---|---|
StreamBuffer()
Default constructor for externalization only. |
Method Summary | |
---|---|
byte[] |
getBuffer()
|
boolean |
isEOS()
|
static StreamBuffer |
newEOSInstance()
Create a new end of stream instance. |
static StreamBuffer |
newInstance(byte[] buffer)
Create a new stream buffer instance. |
void |
readExternal(java.io.ObjectInput in)
|
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamBuffer()
Method Detail |
---|
public static StreamBuffer newInstance(byte[] buffer)
buffer
- The buffered data.
java.lang.NullPointerException
- if the buffered data is null
.
java.lang.IllegalArgumentException
- if the buffer is empty.public static StreamBuffer newEOSInstance()
public byte[] getBuffer()
public boolean isEOS()
true
if this instance signals the end of stream.public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |