ByteArrayInputStream result = new ByteArrayInputStream(buf.getBuffer(),0,fullCompressedDataLength); ReadStream readStream = new ReadStream(new VfsStream(result,null)); return new TempBufferStringValue(TempBuffer.copyFromStream(readStream));
long value = crc.getValue();  buffer[0] = (byte) (value >> 24); buffer[1] = (byte) (value >> 16); buffer[2] = (byte) (value >> 8); buffer[3] = (byte) (value >> 0);  out.write(buffer, 0, 4, true);  TempBuffer.free(buf);  return new TempBufferStringValue(out.getHead());
  public Value gzcompress(String data,                          @Optional("-1") int level)    throws DataFormatException, IOException  {    if (level == -1)      level = Deflater.DEFAULT_COMPRESSION;    Deflater deflater = new Deflater(level);    byte[] input = data.getBytes();    deflater.setInput(input);    deflater.finish();    byte[] output = new byte[input.length];    ByteBuffer buf = new ByteBuffer();    int compressedDataLength;    int fullCompressedDataLength = 0;    while (!deflater.finished()) {      compressedDataLength = deflater.deflate(output);      fullCompressedDataLength += compressedDataLength;      buf.append(output,0,compressedDataLength);    }    ByteArrayInputStream result = new ByteArrayInputStream(buf.getBuffer(),0,fullCompressedDataLength);    ReadStream readStream = new ReadStream(new VfsStream(result,null));    return new TempBufferStringValue(TempBuffer.copyFromStream(readStream));  }