示例#1
0
    @Override
    public void close() throws IOException {
      bout.close();
      output.close();

      Iterator<MessageHandler> it = config.getMessagerHandlers();

      while (it.hasNext()) {
        MessageHandler handler = it.next();
        handler.handleRequest(url, bout.toByteArray());
      }
    }
示例#2
0
 @Override
 public void write(byte b[]) throws IOException {
   bout.write(b);
   output.write(b);
 }
示例#3
0
 @Override
 public void write(byte b[], int off, int len) throws IOException {
   bout.write(b, off, len);
   output.write(b, off, len);
 }
示例#4
0
 @Override
 public void write(int b) throws IOException {
   bout.write((char) b);
   output.write(b);
 }