ByteArrayOutputStream output = new ByteArrayOutputStream();
ByteArrayOutputStream error = new ByteArrayOutputStream();
BlobClientHandler w1 = new BlobClientHandler("get", input, p.getOutputStream());
BlobClientHandler w2 = new BlobClientHandler("post", p.getInputStream(), output);
Writer w3 = new Writer(p.getErrorStream(), error);
p.waitFor();
w1.join();
w2.join();
w3.join();
if (w1.getException() != null)
{
throw w1.getException();
}
if (w2.getException() != null)
{
throw w2.getException();
}
if (w3.getException() != null)
{
throw w3.getException();
}
if (error.size() > 0
&& output.size() == 0)
{