org.apache.xmlgraphics.util.io
public class Base64DecodeStream extends java.io.InputStream
byte data[]; InputStream is = new ByteArrayInputStream(data); is = new Base64DecodeStream(is);On errors, this class throws a IOException with the following detail strings:
"Base64DecodeStream: Bad Padding byte (2)." "Base64DecodeStream: Bad Padding byte (1)."
Constructor and Description |
---|
Base64DecodeStream(java.io.InputStream src) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] out,
int offset,
int len) |
public boolean markSupported()
markSupported
in class java.io.InputStream
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] out, int offset, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.