com.myjavatools.lib
Interface Files.ByteFilter

All Known Subinterfaces:
Files.BufferingFilter
Enclosing interface:
Files

public static interface Files.ByteFilter

Description: The interface is used to define filters for filtering data in pipes. Filters, similar to those in JSPs, can modify the bytes going from one end of the pipe to another, or just sniff them and act based on results - e.g. count bytes, calculate crc, you name it.


Method Summary
 byte[] filter(byte[] input, int length)
          filters data coming from input
 

Method Detail

filter

public byte[] filter(byte[] input,
                     int length)
filters data coming from input

Parameters:
input - byte[] input data
length - int number of meaningful bytes
Returns:
byte[] result of filtering