XorSocketpublic 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.InputStream | getInputStream()
if (in == null) {
in = new XorInputStream(super.getInputStream(), pattern);
}
return in;
| public java.io.OutputStream | getOutputStream()
if (out == null) {
out = new XorOutputStream(super.getOutputStream(), pattern);
}
return out;
|
|