[1cff17]: / src / org / esb / hive / CommandInputStream.h  Maximize  Restore  History

Download this file

31 lines (27 with data), 723 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef ORG_ESB_HIVE_COMMANDINPUTSTREAM_H
#define ORG_ESB_HIVE_COMMANDINPUTSTREAM_H
#include "org/esb/io/InputStream.h"
#include "Command.h"
#include <vector>
using namespace org::esb::io;
namespace org {
namespace esb {
namespace hive {
class CommandInputStream : public InputStream {
public:
CommandInputStream(InputStream * is);
~CommandInputStream();
int read(unsigned char * buffer, int length);
int read(vector<unsigned char>&buffer);
int read();
int available(bool isBlocking = false);
Command & readCommand();
private:
InputStream * _source;
Command _command;
unsigned char byte;
};
}
}
}
#endif