|
Multivalent API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
multivalent.std.adaptor.pdf.CryptFilter
Crypt filter on individual COS streams (introduced in PDF 1.5).
Field Summary | |
---|---|
static CryptFilter |
IDENTITY
|
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
CryptFilter(CryptFilter cf,
java.io.InputStream in,
int objnum,
int gennum)
Creates instance to use as a FilterInputStream ,
which is only needed when the crypt filter is not the first filter,
which is rare. |
Method Summary | |
---|---|
void |
close()
|
byte[] |
decrypt(byte[] buf,
int off,
int len)
Decrypts directly using filter's security handler. |
void |
decrypt(java.lang.StringBuffer sb)
Decrypts PDF string in sb. |
byte[] |
encrypt(byte[] buf,
int off,
int len)
Encrypts directly using filter's security handler. |
void |
encrypt(java.lang.StringBuffer sb)
Encrypts PDF string in sb. |
boolean |
markSupported()
|
int |
read()
|
int |
read(byte[] b,
int off,
int len)
|
CryptFilter |
reset(int objnum,
int gennum)
|
java.lang.String |
toString()
|
Methods inherited from class java.io.FilterInputStream |
---|
available, mark, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final CryptFilter IDENTITY
Constructor Detail |
---|
public CryptFilter(CryptFilter cf, java.io.InputStream in, int objnum, int gennum) throws java.io.IOException
FilterInputStream
,
which is only needed when the crypt filter is not the first filter,
which is rare.
java.io.IOException
Method Detail |
---|
public byte[] decrypt(byte[] buf, int off, int len)
public byte[] encrypt(byte[] buf, int off, int len)
public void decrypt(java.lang.StringBuffer sb)
public void encrypt(java.lang.StringBuffer sb)
public CryptFilter reset(int objnum, int gennum)
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.FilterInputStream
public void close() throws java.io.IOException
close
in class java.io.FilterInputStream
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
Multivalent API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |