Package com.orsonpdf.filter
Interface Filter
-
- All Known Implementing Classes:
ASCII85Filter
,FlateFilter
public interface Filter
A filter that can be used to encode stream data in PDF output.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
encode(byte[] source)
Apply the encoding to the bytes insource
and return the encoded data in a new array.FilterType
getFilterType()
Returns the filter type.
-
-
-
Method Detail
-
getFilterType
FilterType getFilterType()
Returns the filter type.- Returns:
- The filter type (never
null
).
-
encode
byte[] encode(byte[] source)
Apply the encoding to the bytes insource
and return the encoded data in a new array.- Parameters:
source
- the source (null
not permitted).- Returns:
- The encoded bytes.
-
-