|
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.agent.client.FileStreamMultiplexer
public class FileStreamMultiplexer
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 |
---|
public static final int DEFAULT_BUFFER_SIZE
Constructor Detail |
---|
public FileStreamMultiplexer()
public FileStreamMultiplexer(int bufferSize)
bufferSize
- The buffer size.
java.lang.IllegalArgumentException
- if the buffer size is not greater than zero.Method Detail |
---|
public FileDataResult[] sendData(java.io.OutputStream outStream, FileData[] destFiles, java.io.InputStream[] streams) throws java.io.IOException, AgentRemoteException
outStream
- The output stream where the combined streams are written.destFiles
- The files representing each input stream.streams
- The file input streams.
java.io.IOException
AgentRemoteException
|
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 |