public class EEXECEncryption extends OutputStream implements EEXECConstants
C1, C2, CHARSTRING_R, EEXEC_R, N
Constructor and Description |
---|
EEXECEncryption(OutputStream out)
Creates an EEXECEncryption from given stream.
|
EEXECEncryption(OutputStream out,
int r)
Creates an EEXECEncryption from given stream.
|
EEXECEncryption(OutputStream out,
int r,
int n)
Creates an EEXECEncryption from given stream.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
static int[] |
encryptString(int[] chars,
int r,
int n)
Encrypt array of characters.
|
void |
flush() |
void |
write(int b) |
write, write
public EEXECEncryption(OutputStream out)
out
- stream to writepublic EEXECEncryption(OutputStream out, int r)
out
- stream to writer
- public EEXECEncryption(OutputStream out, int r, int n)
out
- stream to writer
- n
- public void write(int b) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public static int[] encryptString(int[] chars, int r, int n) throws IOException
chars
- int array to encryptr
- n
- IOException
- if write fails (never happens)Copyright © 2016. All rights reserved.