Package de.uplanet.util.base64
Class Base64InputStream
java.lang.Object
java.io.InputStream
de.uplanet.util.base64.Base64InputStream
- All Implemented Interfaces:
- Closeable,- AutoCloseable
Base64 encoding as described in 
 RFC 2045 section 6.8.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Close the stream.voidmark(int p_iReadLimit) Throws ajava.lang.UnsupportedOperationException, since this class does not support themarkmethod.booleanTests if this input stream supports themarkandresetmethods, which it does not.intread()Reads the next byte of data from the input stream.intread(byte[] p_byte) intread(byte[] p_buf, int p_iOffs, int p_iLen) voidreset()Throws ajava.lang.UnsupportedOperationException, since this class does not support theresetmethod.longskip(long p_iLen) Skips over and discardsp_iLenbytes of data from this decoding stream.Methods inherited from class java.io.InputStreamavailable, nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
- 
Constructor Details- 
Base64InputStreamConstructor for Base64InputStream. Creates a new base64 input stream.- Parameters:
- p_in- The underlying input stream.
 
 
- 
- 
Method Details- 
readReads the next byte of data from the input stream.- Specified by:
- readin class- InputStream
- Returns:
- The byte read.
- Throws:
- IOException- If an I/O error occurs.
 
- 
read- Overrides:
- readin class- InputStream
- Throws:
- IOException- If an I/O error occurs.
 
- 
read- Overrides:
- readin class- InputStream
- Throws:
- IOException- If an I/O error occurs.
 
- 
skipSkips over and discardsp_iLenbytes of data from this decoding stream.- Overrides:
- skipin class- InputStream
- Parameters:
- p_iLen- Number of Bytes to skip.
- Returns:
- The number of bytes actually skipped.
- Throws:
- IOException
 
- 
markSupportedpublic boolean markSupported()Tests if this input stream supports themarkandresetmethods, which it does not.- Overrides:
- markSupportedin class- InputStream
- Returns:
- false, since this class does not support the- markand- resetmethods.
 
- 
markpublic void mark(int p_iReadLimit) Throws ajava.lang.UnsupportedOperationException, since this class does not support themarkmethod.- Overrides:
- markin class- InputStream
 
- 
resetThrows ajava.lang.UnsupportedOperationException, since this class does not support theresetmethod.- Overrides:
- resetin class- InputStream
- Throws:
- IOException- If an I/O error occurs.
 
- 
closeClose the stream.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- InputStream
- Throws:
- IOException
 
 
-