StreamBuffer (Hyperic HQ Plugin API)
Keywords: org.hyperic.hq.transport.util.StreamBuffer class

Overview | Package | Class | Tree | Deprecated | Index | Help
| 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

## org.hyperic.hq.transport.util
Class StreamBuffer

    java.lang.Object
      org.hyperic.hq.transport.util.StreamBuffer

All Implemented Interfaces:
  java.io.Externalizable, java.io.Serializable

    public class StreamBuffer

extends java.lang.Object
implements java.io.Externalizable

The buffers containing the data stream chunks for a `RemoteInputStream`.

See Also:
  Serialized Form

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

### StreamBuffer

    public StreamBuffer()

  Default constructor for externalization only.

Method Detail

### newInstance

    public static StreamBuffer newInstance(byte[] buffer)

  Create a new stream buffer instance.

  Parameters:
    `buffer` - The buffered data.
  Returns:
    The stream buffer.
  Throws:
    `java.lang.NullPointerException` - if the buffered data is `null`.
    `java.lang.IllegalArgumentException` - if the buffer is empty.

### newEOSInstance

    public static StreamBuffer newEOSInstance()

  Create a new end of stream instance.

  Returns:
    The stream buffer.

### getBuffer

    public byte[] getBuffer()

  Returns:
    The buffered data.

### isEOS

    public boolean isEOS()

  Returns:
    `true` if this instance signals the end of stream.

### readExternal

    public void readExternal(java.io.ObjectInput in)
                      throws java.io.IOException,
                             java.lang.ClassNotFoundException

  Specified by:
    `readExternal` in interface `java.io.Externalizable`
  Throws:
    `java.io.IOException`
    `java.lang.ClassNotFoundException`

### writeExternal

    public void writeExternal(java.io.ObjectOutput out)
                       throws java.io.IOException

  Specified by:
    `writeExternal` in interface `java.io.Externalizable`
  Throws:
    `java.io.IOException`

Overview | Package | Class | Tree | Deprecated | Index | Help
| 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

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.