@Override public byte[] perform(byte[] blob) throws TokenStrategyFailedException {
  Reject.ifNull(blob);
  final ByteArrayOutputStream bout=new ByteArrayOutputStream(blob.length);
  try {
    final GZIPOutputStream out=new GZIPOutputStream(bout);
    out.write(blob);
    out.flush();
    out.close();
  }
 catch (  IOException e) {
    throw new TokenStrategyFailedException(e);
  }
  return bout.toByteArray();
}

@ Override public byte [ ] perform ( byte [ ] blob ) throws TokenStrategyFailedException { Reject . ifNull ( blob ) ; final ByteArrayOutputStream bout = new ByteArrayOutputStream ( blob . length ) ; try { final GZIPOutputStream out = new GZIPOutputStream ( bout ) ; out . write ( blob ) ; out . flush ( ) ; out . close ( ) ; } catch ( IOException e ) { throw new TokenStrategyFailedException ( e ) ; } return bout . toByteArray ( ) ; }
compress the tokens binary object .
