307308309310311312313314
} public void setFixedLengthStreamingMode(int contentLength) { if (entity != null) throw new IllegalArgumentException(); entity = new TemporaryBufferEntity(new LocalFile()); entity.setContentLength(contentLength); }
313314315316317318319320
entity.setContentLength(contentLength); } public OutputStream getOutputStream() throws IOException { if (entity == null) entity = new TemporaryBufferEntity(new LocalFile()); return entity.getBuffer(); }
319320321322323324325326
return entity.getBuffer(); } public void setChunkedStreamingMode(int chunklen) { if (entity == null) entity = new TemporaryBufferEntity(new LocalFile()); entity.setChunked(true); }