edu.vt.middleware.crypt.io
Class HexFilterOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
edu.vt.middleware.crypt.io.AbstractEncodingFilterOutputStream
edu.vt.middleware.crypt.io.HexFilterOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class HexFilterOutputStream
- extends AbstractEncodingFilterOutputStream
Encodes raw bytes into hexadecimal characters in the wrapped output stream.
- Version:
- $Revision: 2745 $
- Author:
- Middleware Services
|
Method Summary |
protected void |
writeEncoded(byte[] data,
int offset,
int length)
Encode the given raw bytes and write the result to the wrapped output
stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HexFilterOutputStream
public HexFilterOutputStream(OutputStream out)
- Creates a hex filter output stream around the given output stream.
- Parameters:
out - Output stream to wrap.
writeEncoded
protected void writeEncoded(byte[] data,
int offset,
int length)
throws IOException
- Encode the given raw bytes and write the result to the wrapped output
stream.
- Specified by:
writeEncoded in class AbstractEncodingFilterOutputStream
- Parameters:
data - Raw bytes to be encoded and written.offset - Starting index of data to be written in input byte array.length - Number of bytes to be written from input byte array.
- Throws:
IOException - On write errors.
Copyright © 2003-2013 Virginia Tech. All Rights Reserved.