Modifier and Type | Field and Description |
---|---|
static String |
RESPONSE_CODE_HEADER_NAME |
Constructor and Description |
---|
NetUtils() |
Modifier and Type | Method and Description |
---|---|
InputStream |
httpConnectToRead(String URL,
Map sendHeaders,
Map receiveHeaders) |
OutputStream |
httpConnectToUpload(String URL,
long length,
Map sendHeaders,
Map receiveHeaders) |
InputStream |
httpConnectToWrite(String URL,
String type,
Map sendProperties,
Map receivedProperties,
byte[] toSend,
int offset,
int length) |
public static final String RESPONSE_CODE_HEADER_NAME
public InputStream httpConnectToWrite(String URL, String type, Map sendProperties, Map receivedProperties, byte[] toSend, int offset, int length) throws IOException, MalformedURLException
IOException
MalformedURLException
public InputStream httpConnectToRead(String URL, Map sendHeaders, Map receiveHeaders) throws IOException, MalformedURLException
IOException
MalformedURLException
public OutputStream httpConnectToUpload(String URL, long length, Map sendHeaders, Map receiveHeaders) throws IOException, MalformedURLException
IOException
MalformedURLException