>>>But in your first post, you said you needed to use the FilterOutputStream ???!!!
It's better to do it with using FilterOutputStream, but the using of FilterOutputStream isn't necessary.
>>>Filter what ?
One of class metods writes some data to OutputStream (the stream is a class member)...