com.compoze.util
Class  Base64InputStream
java.lang.Object
  |
  +--java.io.InputStream
        |
        +--java.io.FilterInputStream
              |
              +--com.compoze.util.Base64InputStream
- public class Base64InputStream
- extends java.io.FilterInputStream
  
This class provides an implementation of a Base 64 decoder in the form
 of an extension of FilterOutputStream. It is based on the
 implementation of BASE64DecoderStream from Sun's JDK utility
 classes.
| Fields inherited from class java.io.FilterInputStream | 
in | 
 
 
| 
Method Summary | 
 int | 
available()
 
          Gets the number of bytes that are available to read. | 
 void | 
decode()
 
          Decodes the buffer. | 
static byte[] | 
decode(byte[] abyte0)
 
          Decodes a buffer. | 
 boolean | 
markSupported()
 
          Determines if mark is supported. | 
 int | 
read()
 
          Reads a byte. | 
 int | 
read(byte[] abyte0,
     int i,
     int j)
 
          Reads bytes. | 
 
| Methods inherited from class java.io.FilterInputStream | 
close, mark, read, reset, skip | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
Base64InputStream
public Base64InputStream(java.io.InputStream inputstream)
- Constructor.
- Parameters:
 inputstream - the underlying InputStream
 
 
read
public int read()
         throws java.io.IOException
- Reads a byte.
- Overrides:
 read in class java.io.FilterInputStream
 
- Returns:
 - the byte that was read, or -1 if the end of the stream has been reached
 - Throws:
 java.io.IOException - if an i/o error occurred
 
 
read
public int read(byte[] abyte0,
                int i,
                int j)
         throws java.io.IOException
- Reads bytes.
- Overrides:
 read in class java.io.FilterInputStream
 
- Parameters:
 abyte0 - the buffer to read intoi - the offset into the arrayj - the length to read- Returns:
 - the number of bytes that were read, or -1 if the end of the stream
				has been reached
 - Throws:
 java.io.IOException - if an i/o error occurred
 
 
markSupported
public boolean markSupported()
- Determines if mark is supported. It's not.
- Overrides:
 markSupported in class java.io.FilterInputStream
 
- Returns:
 - false
 
 
 
available
public int available()
              throws java.io.IOException
- Gets the number of bytes that are available to read.
- Overrides:
 available in class java.io.FilterInputStream
 
- Throws:
 java.io.IOException - if an i/o error occurred
 
 
decode
public void decode()
            throws java.io.IOException
- Decodes the buffer.
- Throws:
 java.io.IOException - if an i/o error occurred
 
 
decode
public static byte[] decode(byte[] abyte0)
- Decodes a buffer.
 
 Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.