hudson.util
Class UnbufferedBase64InputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by hudson.util.UnbufferedBase64InputStream
All Implemented Interfaces:
Closeable

public class UnbufferedBase64InputStream
extends FilterInputStream

Filter InputStream that decodes base64 without doing any buffering.

This is slower implementation, but it won't consume unnecessary bytes from the underlying InputStream, allowing the reader to switch between the unencoded bytes and base64 bytes.

Since:
1.349
Author:
Kohsuke Kawaguchi

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
UnbufferedBase64InputStream(InputStream in)
           
 
Method Summary
 int read()
           
 int read(byte[] b, int off, int len)
           
 long skip(long n)
           
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnbufferedBase64InputStream

public UnbufferedBase64InputStream(InputStream in)
Method Detail

read

public int read()
         throws IOException
Overrides:
read in class FilterInputStream
Throws:
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Overrides:
read in class FilterInputStream
Throws:
IOException

skip

public long skip(long n)
          throws IOException
Overrides:
skip in class FilterInputStream
Throws:
IOException


Copyright © 2004-2013. All Rights Reserved.