Apache HttpClientConnection: replace calls to deprecated LocalFile()

Change-Id: I79f422e004f386b3f2875de6997e5a0949fff566
This commit is contained in:
Matthias Sohn 2014-11-26 01:35:59 +01:00
parent 61b632ee5a
commit f9088d6dda
1 changed files with 3 additions and 3 deletions

View File

@ -309,19 +309,19 @@ public void setDoOutput(boolean dooutput) {
public void setFixedLengthStreamingMode(int contentLength) { public void setFixedLengthStreamingMode(int contentLength) {
if (entity != null) if (entity != null)
throw new IllegalArgumentException(); throw new IllegalArgumentException();
entity = new TemporaryBufferEntity(new LocalFile()); entity = new TemporaryBufferEntity(new LocalFile(null));
entity.setContentLength(contentLength); entity.setContentLength(contentLength);
} }
public OutputStream getOutputStream() throws IOException { public OutputStream getOutputStream() throws IOException {
if (entity == null) if (entity == null)
entity = new TemporaryBufferEntity(new LocalFile()); entity = new TemporaryBufferEntity(new LocalFile(null));
return entity.getBuffer(); return entity.getBuffer();
} }
public void setChunkedStreamingMode(int chunklen) { public void setChunkedStreamingMode(int chunklen) {
if (entity == null) if (entity == null)
entity = new TemporaryBufferEntity(new LocalFile()); entity = new TemporaryBufferEntity(new LocalFile(null));
entity.setChunked(true); entity.setChunked(true);
} }