Package nu.validator.io
Class Base64InputStream
java.lang.Object
java.io.InputStream
nu.validator.io.Base64InputStream
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class Base64InputStream
extends java.io.InputStream
Conceptually decodes bytes into ASCII and then decodes Base64
into bytes. In practice, converting into a
Reader
in between is optimized away.- Version:
- $Id$
- Author:
- hsivonen
-
Constructor Summary
Constructors Constructor Description Base64InputStream(java.io.InputStream delegate)
-
Method Summary
-
Constructor Details
-
Base64InputStream
public Base64InputStream(java.io.InputStream delegate)- Parameters:
delegate
-
-
-
Method Details
-
read
public int read() throws java.io.IOException- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.InputStream
- Throws:
java.io.IOException
- See Also:
InputStream.close()
-