Package com.orsonpdf.filter
Interface Filter
-
- All Known Implementing Classes:
ASCII85Filter,FlateFilter
public interface FilterA 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 insourceand return the encoded data in a new array.FilterTypegetFilterType()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 insourceand return the encoded data in a new array.- Parameters:
source- the source (nullnot permitted).- Returns:
- The encoded bytes.
-
-