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

    Modifier and Type Method Description
    void close()  
    int read()  

    Methods inherited from class java.io.InputStream

    available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class java.io.InputStream
      Throws:
      java.io.IOException
    • close

      public void close() throws java.io.IOException
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Overrides:
      close in class java.io.InputStream
      Throws:
      java.io.IOException
      See Also:
      InputStream.close()