multivalent.std.adaptor.pdf

Class CryptFilter

public class CryptFilter extends FilterInputStream

Crypt filter on individual COS streams (introduced in PDF 1.5).

Version: $Revision: 1.6 $ $Date: 2003/08/17 08:39:54 $

Field Summary
static CryptFilterIDENTITY
Constructor Summary
CryptFilter(CryptFilter cf, 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
voidclose()
byte[]decrypt(byte[] buf, int off, int len)
Decrypts directly using filter's security handler.
voiddecrypt(StringBuffer sb)
Decrypts PDF string in sb.
byte[]encrypt(byte[] buf, int off, int len)
Encrypts directly using filter's security handler.
voidencrypt(StringBuffer sb)
Encrypts PDF string in sb.
booleanmarkSupported()
intread(byte[] b, int off, int len)
intread()
CryptFilterreset(int objnum, int gennum)
StringtoString()

Field Detail

IDENTITY

public static final CryptFilter IDENTITY

Constructor Detail

CryptFilter

public CryptFilter(CryptFilter cf, 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 Detail

close

public void close()

decrypt

public byte[] decrypt(byte[] buf, int off, int len)
Decrypts directly using filter's security handler.

decrypt

public void decrypt(StringBuffer sb)
Decrypts PDF string in sb. Mutates sb.

encrypt

public byte[] encrypt(byte[] buf, int off, int len)
Encrypts directly using filter's security handler.

encrypt

public void encrypt(StringBuffer sb)
Encrypts PDF string in sb. Mutates sb.

markSupported

public boolean markSupported()

read

public int read(byte[] b, int off, int len)

read

public int read()

reset

public CryptFilter reset(int objnum, int gennum)

toString

public String toString()