public SynapseBinaryDataSource(InputStream inputstream,
String contentType) throws IOException {
this.contentType = contentType;
this.data = new TemporaryData(4, 1024, "tmp_", ".dat");
data.readFrom(inputstream);
inputstream.close();
}
Constructs the HessianDataSource from the given InputStream. Inside the HessianDataSource,
data is stored in a byte[] or in a temp file format inorder to be able to get the stream any
number of time, otherwise the stream can only be read once Parameters:
inputstream - contains the Hessian message for later retrieval
contentType - message content type
Throws:
IOException - failure in reading from the InputStream
|