Package com.idrsolutions.image.filter
Class Filter
java.lang.Object
com.idrsolutions.image.filter.Filter
Baseclass for IDR encoding and decoding Filters
-
Method Summary
Modifier and TypeMethodDescriptionabstract byte[]decode(byte[] data) abstract voiddecode(BufferedInputStream bis, BufferedOutputStream streamCache, String cacheName, Map<String, String> cachedObjects) abstract byte[]encode(byte[] data) abstract voidencode(BufferedInputStream bis, BufferedOutputStream bos) booleanhasError()inherited by several methodsvoidsetEncHash(byte[] encHash) voidsetupCachedObjectForDecoding(String cacheName)
-
Method Details
-
decode
- Throws:
Exception
-
decode
public abstract void decode(BufferedInputStream bis, BufferedOutputStream streamCache, String cacheName, Map<String, String> cachedObjects) throws Exception- Throws:
Exception
-
encode
public abstract byte[] encode(byte[] data) -
encode
- Throws:
Exception
-
hasError
public boolean hasError()inherited by several methods- Returns:
- true if there is an error
-
setupCachedObjectForDecoding
- Throws:
Exception
-
setEncHash
public void setEncHash(byte[] encHash)
-