Package VASSAL.tools.io
Class ObfuscatingOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
VASSAL.tools.io.ObfuscatingOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
A
FilterOutputStream
which handles simple obfuscation of a file's
contents, to prevent the casual cheat of hand-editing.- Since:
- 3.2.0
- Author:
- uckelman
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.FilterOutputStream
close, flush, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
HEADER
- See Also:
-
-
Constructor Details
-
ObfuscatingOutputStream
- Parameters:
out
- the stream to wrap- Throws:
IOException
- oops
-
ObfuscatingOutputStream
- Parameters:
out
- the stream to wrapkey
- the byte to use as the key- Throws:
IOException
- oops
-
-
Method Details
-
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
main
- Throws:
IOException
-