193194195196197198199200201202203
value = str == null ? null : new ByteArrayInputStream(str.getBytes(Constants.DEFAULT_ENCODING)); } if (value == null) { contentLenWriter.writeLong(-1); } else { long len = 0; int read = 0;
206207208209210211212213214215216
while ((read = value.read(tmpBuff)) >= 0) { contentWriter.write(tmpBuff, 0, read); len += read; } contentLenWriter.writeLong(len); } } } } finally
203204205206207208209210211212213
216217218219220221222223224225226
225226227228229230231232233234235
238239240241242243244245246247248