KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > etymon > pjx > stream > PdfStreamFilter


1 /*
2   Copyright (C) Etymon Systems, Inc. <http://www.etymon.com/>
3 */

4
5 package com.etymon.pjx.stream;
6
7 import java.io.*;
8 import com.etymon.pjx.*;
9
10 /**
11    A filtering function that implements PDF stream filter encoding and
12    decoding.
13    @author Nassib Nassar
14 */

15 public interface PdfStreamFilter {
16
17     /**
18        Returns the name of this filter method. This is the name
19        to be used in the stream dictionary.
20      */

21     public PdfName getName();
22     
23     /**
24        Encodes a stream using this filter's encoding method.
25        @param stream the stream to encode.
26        @return the encoded stream.
27        @throws PdfFormatException
28      */

29     public PdfStream encode(PdfStream stream) throws IOException, PdfFormatException;
30
31     /**
32        Decodes a stream using this filter's decoding method.
33        @param stream the stream to decode.
34        @return the decoded stream.
35        @throws PdfFormatException
36      */

37     public PdfStream decode(PdfStream stream) throws IOException, PdfFormatException, PdfDecoderFormatException;
38
39 }
40
Popular Tags