hudson.util
Class UnbufferedBase64InputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
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
|
Method Summary |
int |
read()
|
int |
read(byte[] b,
int off,
int len)
|
long |
skip(long n)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnbufferedBase64InputStream
public UnbufferedBase64InputStream(InputStream in)
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.