edu.vt.middleware.crypt.io
Class HexFilterInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
edu.vt.middleware.crypt.io.AbstractEncodingFilterInputStream
edu.vt.middleware.crypt.io.HexFilterInputStream
- All Implemented Interfaces:
- Closeable
public class HexFilterInputStream
- extends AbstractEncodingFilterInputStream
Decodes hexadecimal character bytes in the wrapped input stream into raw
bytes.
- Version:
- $Revision: 2745 $
- Author:
- Middleware Services
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HexFilterInputStream
public HexFilterInputStream(InputStream in)
- Creates a hex filter input stream around the given input stream.
- Parameters:
in - Input stream to wrap.
getDecodeBufferCapacity
protected int getDecodeBufferCapacity()
- Gets the encoder that decodes encoded character data in the input stream to
raw bytes.
- Specified by:
getDecodeBufferCapacity in class AbstractEncodingFilterInputStream
- Returns:
- Encoder instance.
fillBuffer
protected void fillBuffer()
throws IOException
- Reads characters from the input reader and decodes them to fill
AbstractEncodingFilterInputStream.decodeBuffer.
- Specified by:
fillBuffer in class AbstractEncodingFilterInputStream
- Throws:
IOException - On read errors.
Copyright © 2003-2013 Virginia Tech. All Rights Reserved.