javax.crypto
public
class
javax.crypto.CipherInputStream
Summary
Public Constructors
Protected Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
Protected Constructors
Public Methods
public
int
available()
Answers a int representing the number of bytes that are available before
this FilterInputStream will block. This method returns the number of
bytes available in the target stream.
public
void
close()
Close this FilterInputStream. This implementation closes the target
stream.
public
boolean
markSupported()
Answers a boolean indicating whether or not this FilterInputStream
supports mark() and reset(). This implementation answers whether or not
the target stream supports marking.
public
int
read(byte[] b, int off, int len)
Reads at most
count bytes from this FilterInputStream and
stores them in byte array
buffer starting at
offset. Answer the number of bytes actually read or -1 if
no bytes were read and end of stream was encountered. This implementation
reads bytes from the target stream.
Parameters
| b
| the byte array in which to store the read bytes. |
| off
| the offset in buffer to store the read bytes. |
| len
| the maximum number of bytes to store in buffer. |
public
int
read(byte[] b)
Reads bytes from this FilterInputStream and stores them in byte array
buffer. Answer the number of bytes actually read or -1 if
no bytes were read and end of stream was encountered. This implementation
reads bytes from the target stream.
Parameters
| b
| the byte array in which to store the read bytes. |
public
int
read()
Reads a single byte from this FilterInputStream and returns the result as
an int. The low-order byte is returned or -1 of the end of stream was
encountered. This implementation returns a byte from the target stream.
public
long
skip(long n)
Skips
count number of bytes in this InputStream.
Subsequent
read()'s will not return these bytes unless
reset() is used. This implementation skips
count number of bytes in the target stream.
Parameters
| n
| the number of bytes to skip. |