FileDocCategorySizeDatePackage
XorSocket.javaAPI DocExample2910Wed Apr 19 11:20:16 BST 2000examples.rmisocfac

XorSocket

public class XorSocket extends Socket

Fields Summary
private byte
pattern
private InputStream
in
private OutputStream
out
Constructors Summary
public XorSocket(byte pattern)

  
    /* 
     * Constructor for class XorSocket. 
     */
      
          
    
        super();
        this.pattern = pattern;
    
public XorSocket(String host, int port, byte pattern)

        super(host, port);
        this.pattern = pattern;
    
Methods Summary
public java.io.InputStreamgetInputStream()

        if (in == null) {
            in = new XorInputStream(super.getInputStream(), pattern);
        }
        return in;
    
public java.io.OutputStreamgetOutputStream()

        if (out == null) {
            out = new XorOutputStream(super.getOutputStream(), pattern);
        }
        return out;