Code example for Inflater

Methods: end, inflate, setInput

0
    return "B1"; 
  } 
 
  protected byte[] decompress(byte input[], int len) {
    int olen = 0;
    Inflater decompresser = new Inflater();
    byte output[] = new byte[len];
    decompresser.setInput(input);
    try { 
      olen = decompresser.inflate(output);
    } catch(java.util.zip.DataFormatException e) {
    } 
    decompresser.end();
    if(len != olen) return new byte[0];
    return output;
  } 
 
  public NoitBundlev1() {} 
  public NoitBundlev1(String[] parts) throws Exception {
    super(parts);
  }