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.agent.client
Class FileStreamMultiplexer

    java.lang.Object
      org.hyperic.hq.agent.client.FileStreamMultiplexer

    public class FileStreamMultiplexer

extends java.lang.Object

A utility combining one or more file input streams into a single output stream.

Field Summary
`static int` | `DEFAULT_BUFFER_SIZE` The default buffer size (8kb).

Constructor Summary
`FileStreamMultiplexer()` Creates an instance using the default max output stream buffer size.
`FileStreamMultiplexer(int bufferSize)` Creates an instance where the max output stream buffer size is specified.

Method Summary
`FileDataResult[]` | `sendData(java.io.OutputStream outStream, FileData[] destFiles, java.io.InputStream[] streams)` Muliplex the input streams into a single output stream.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### DEFAULT_BUFFER_SIZE

    public static final int DEFAULT_BUFFER_SIZE

  The default buffer size (8kb).

  See Also:
    Constant Field Values

Constructor Detail

### FileStreamMultiplexer

    public FileStreamMultiplexer()

  Creates an instance using the default max output stream buffer size.

### FileStreamMultiplexer

    public FileStreamMultiplexer(int bufferSize)

  Creates an instance where the max output stream buffer size is specified.

  Parameters:
    `bufferSize` - The buffer size.
  Throws:
    `java.lang.IllegalArgumentException` - if the buffer size is not greater than zero.

Method Detail

### sendData

    public FileDataResult[] sendData(java.io.OutputStream outStream,
                                     FileData[] destFiles,
                                     java.io.InputStream[] streams)
                              throws java.io.IOException,
                                     AgentRemoteException

  Muliplex the input streams into a single output stream.

  Parameters:
    `outStream` - The output stream where the combined streams are written.
    `destFiles` - The files representing each input stream.
    `streams` - The file input streams.
  Returns:
    The file data result.
  Throws:
    `java.io.IOException`
    `AgentRemoteException`

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.