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, writepublic 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 OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic 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.