|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
javax.crypto.CipherInputStream
public class CipherInputStream
| Field Summary |
|---|
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
protected |
CipherInputStream(InputStream is)
|
|
CipherInputStream(InputStream is,
Cipher c)
|
| Method Summary | |
|---|---|
int |
available()
Returns a int representing the number of bytes that are available before this FilterInputStream will block. |
void |
close()
Close this FilterInputStream. |
boolean |
markSupported()
Returns a boolean indicating whether or not this FilterInputStream supports mark() and reset(). |
int |
read()
Reads a single byte from this FilterInputStream and returns the result as an int. |
int |
read(byte[] b)
Reads bytes from this FilterInputStream and stores them in byte array buffer. |
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. |
long |
skip(long n)
Skips count number of bytes in this InputStream. |
| Methods inherited from class java.io.FilterInputStream |
|---|
mark, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CipherInputStream(InputStream is,
Cipher c)
protected CipherInputStream(InputStream is)
| Method Detail |
|---|
public int read()
throws IOException
FilterInputStream
read in class FilterInputStreamIOException - If the stream is already closed or another IOException
occurs.
public int read(byte[] b)
throws IOException
FilterInputStreambuffer. 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.
read in class FilterInputStreamb - the byte array in which to store the read bytes.
IOException - If the stream is already closed or another IOException
occurs.
public int read(byte[] b,
int off,
int len)
throws IOException
FilterInputStreamcount 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.
read in class FilterInputStreamb - 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.
IOException - If the stream is already closed or another IOException
occurs.
public long skip(long n)
throws IOException
FilterInputStreamcount 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.
skip in class FilterInputStreamn - the number of bytes to skip.
IOException - If the stream is already closed or another IOException
occurs.
public int available()
throws IOException
FilterInputStream
available in class FilterInputStreamIOException - If an error occurs in this stream.
public void close()
throws IOException
FilterInputStream
close in interface Closeableclose in class FilterInputStreamIOException - If an error occurs attempting to close this stream.public boolean markSupported()
FilterInputStream
markSupported in class FilterInputStreamtrue if mark() and reset() are supported,
false otherwise.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||