View Javadoc
1   package com.srv4pos.server.api.infrastructure;
2   
3   import java.io.IOException;
4   import java.io.OutputStream;
5   
6   /**
7   * Interface which writes data to HttpUrlConnection.
8   * <p>User: Kirill, Date: 23.08.13 14:51</p>
9   */
10  public interface ConnectionWriter {
11      void write(OutputStream connectionOutputStream) throws IOException;
12  
13      Integer getContentLength();
14  }