DialConnection.java :  » Net » hyperpool-0.4.0 » vicazh » hyperpool » stream » Java Open Source

Java Open Source » Net » hyperpool 0.4.0 
hyperpool 0.4.0 » vicazh » hyperpool » stream » DialConnection.java
package vicazh.hyperpool.stream;

import java.io.*;

class DialConnection extends Connection {
  ByteArrayOutputStream astream;

  DialConnection(DialService service) {
    super(service);
    astream = new ByteArrayOutputStream();
  }

  public void setClient(OutputStream outputstream) {
    setClient(new DialClientStream(this, outputstream));
  }

  public void setServer(OutputStream outputstream) {
    setServer(new DialServerStream(this, outputstream));
  }

  boolean b;

  void dial() throws IOException {
    ((DialService) element).dial(this);
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.