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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the stream.void
mark
(int p_iReadLimit) Throws ajava.lang.UnsupportedOperationException
, since this class does not support themark
method.boolean
Tests if this input stream supports themark
andreset
methods, which it does not.int
read()
Reads the next byte of data from the input stream.int
read
(byte[] p_byte) int
read
(byte[] p_buf, int p_iOffs, int p_iLen) void
reset()
Throws ajava.lang.UnsupportedOperationException
, since this class does not support thereset
method.long
skip
(long p_iLen) Skips over and discardsp_iLen
bytes of data from this decoding stream.Methods inherited from class java.io.InputStream
available, nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
Base64InputStream
Constructor for Base64InputStream. Creates a new base64 input stream.- Parameters:
p_in
- The underlying input stream.
-
-
Method Details
-
read
Reads the next byte of data from the input stream.- Specified by:
read
in classInputStream
- Returns:
- The byte read.
- Throws:
IOException
- If an I/O error occurs.
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
- If an I/O error occurs.
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
- If an I/O error occurs.
-
skip
Skips over and discardsp_iLen
bytes of data from this decoding stream.- Overrides:
skip
in classInputStream
- Parameters:
p_iLen
- Number of Bytes to skip.- Returns:
- The number of bytes actually skipped.
- Throws:
IOException
-
markSupported
public boolean markSupported()Tests if this input stream supports themark
andreset
methods, which it does not.- Overrides:
markSupported
in classInputStream
- Returns:
false
, since this class does not support themark
andreset
methods.
-
mark
public void mark(int p_iReadLimit) Throws ajava.lang.UnsupportedOperationException
, since this class does not support themark
method.- Overrides:
mark
in classInputStream
-
reset
Throws ajava.lang.UnsupportedOperationException
, since this class does not support thereset
method.- Overrides:
reset
in classInputStream
- Throws:
IOException
- If an I/O error occurs.
-
close
Close the stream.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-